growPayload method
Implementation
@override
@protected
void growPayload(int newCapacity) {
final grown = List<T?>.filled(newCapacity, null, growable: false);
for (var i = 0; i < length; i++) {
grown[i] = _values[i];
}
_values = grown;
}
@override
@protected
void growPayload(int newCapacity) {
final grown = List<T?>.filled(newCapacity, null, growable: false);
for (var i = 0; i < length; i++) {
grown[i] = _values[i];
}
_values = grown;
}