remove method

bool remove(
  1. EventBus bus
)

Stops observing bus. Returns false when it was not observed.

Implementation

bool remove(EventBus bus) {
  final subscription = _subscriptions.remove(bus);
  if (subscription == null) return false;
  unawaited(subscription.cancel());
  return true;
}