hasSpace property
bool
get
hasSpace
Whether the list can accept more elements without removing old ones.
Implementation
bool get hasSpace => length < capacity;
Whether the list can accept more elements without removing old ones.
bool get hasSpace => length < capacity;