isEmpty property - SetBase class - dart:collection library (original) (raw)
bool getisEmpty
override
Whether this collection has no elements.
May be computed by checking if iterator.moveNext()
returns false
.
Example:
final emptyList = <int>[];
print(emptyList.isEmpty); // true;
print(emptyList.iterator.moveNext()); // false
Implementation
bool get isEmpty => length == 0;