listenStreams method Null safety

void listenStreams(
  1. Iterable<Stream> streams,
  2. void update(
      )
    )

    Implementation

    void listenStreams(Iterable<Stream> streams, void Function() update) {
      _sub.addAll(streams.map((e) => e.listen((_) => update())));
    }