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