listen method

void listen(
  1. void callback()
)

Listen to all _streams and call callback when any of them emits

Implementation

void listen(void Function() callback) {
  _subscription = _controller.stream.listen((_) => callback());
}