isEmpty property Null safety
Whether this collection has no elements.
May be computed by checking if iterator.moveNext()
returns false
.
Implementation
bool get isEmpty => _head == _tail;
Whether this collection has no elements.
May be computed by checking if iterator.moveNext()
returns false
.
bool get isEmpty => _head == _tail;