isEmpty property
bool
get
isEmpty
Whether there are no active or pending tasks
Returns true when activeCount and pendingCount are both zero.
Implementation
bool get isEmpty => _activeCount == 0 && _queue.isEmpty;