capacity property

int get capacity

Returns the current capacity of the underlying storage.

This is an approximation since Dart's List doesn't expose exact capacity.

Implementation

int get capacity => _elements.length;