isEmpty property Null safety

bool isEmpty

Whether this collection has no elements.

May be computed by checking if iterator.moveNext() returns false.

Implementation

bool get isEmpty => !iterator.moveNext();