hasSpace property

bool get hasSpace

Whether the list can accept more elements without removing old ones.

Implementation

bool get hasSpace => length < capacity;