isNotEmpty property Null safety

bool isNotEmpty
override

Whether this collection has at least one element.

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

Implementation

bool get isNotEmpty => length != 0;