listen method

  1. @override
Stream listen({
  1. String? key,
})
override

Implementation

@override
Stream<dynamic> listen({String? key}) async* {
  await for (final event in _keyListener.stream) {
    if (key != null) {
      if (event == key) {
        yield key;
      }
    } else {
      yield event;
    }
  }
}