isEmpty property Null safety
override
Whether this collection has no elements.
May be computed by checking if iterator.moveNext()
returns false
.
Implementation
@pragma("vm:prefer-inline")
bool get isEmpty => length == 0;
Whether this collection has no elements.
May be computed by checking if iterator.moveNext()
returns false
.
@pragma("vm:prefer-inline")
bool get isEmpty => length == 0;