isEmpty method
Yields true
if there are no objects that match the query.
This operation is faster than using count() == 0
.
Implementation
bool isEmpty() => aggregate(Aggregation.isEmpty) ?? true;
Yields true
if there are no objects that match the query.
This operation is faster than using count() == 0
.
bool isEmpty() => aggregate(Aggregation.isEmpty) ?? true;