isEmptySync method
Returns true
if there are no objects that match this query.
This operation is faster than using count() == 0
.
Implementation
bool isEmptySync() => aggregateSync<int>(AggregationOp.isEmpty) == 1;
Returns true
if there are no objects that match this query.
This operation is faster than using count() == 0
.
bool isEmptySync() => aggregateSync<int>(AggregationOp.isEmpty) == 1;