isIdle property

bool isIdle

Whether this group contains no streams.

A StreamGroup is idle when it contains no streams, which is the case for a newly created group or one where all added streams have been emitted done events (or been removed).

If this is a single-subscription group, then cancelling the subscription to stream will also remove all streams.

Implementation

bool get isIdle => _subscriptions.isEmpty;