isNotEmpty property Null safety

bool isNotEmpty

Returns true if there is at least one element in this collection.

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

Implementation

bool get isNotEmpty => !isEmpty;