isNotEmpty method

bool isNotEmpty()

Returns true if the collection is not empty.

Implementation

bool isNotEmpty() => size > 0;