listen method

StreamSubscription<void> listen(
  1. void onUpdate()
)

Listens to this InheritedWidget to get notified when it's updated.

Implementation

StreamSubscription<void> listen(final void Function() onUpdate) =>
    _updateStreamController.stream.listen((final event) => onUpdate());