elementsWithSubscriptions method

List<T> elementsWithSubscriptions()

Returns elements from the subscriptions map that still have active subscriptions. See mapSubscriptions.

Implementation

List<T> elementsWithSubscriptions() =>
    _elementsSubscriptions?.entries
        .where((e) => e.value.isNotEmpty)
        .map((e) => e.key)
        .toList() ??
    [];