assign method
- int count,
- T value
Replaces the contents of the vector with count copies of value.
Implementation
void assign(int count, T value) {
if (count < 0) throw ArgumentError('Count cannot be negative');
_data.clear();
for (var i = 0; i < count; i++) {
_data.add(value);
}
}