lifecycleEvents property

Stream<String>? lifecycleEvents

get a stream of all key events, including the BACK button

Implementation

Stream<String>? get lifecycleEvents {
  _lifecycleEventsStreamController?.close(); // close old stream before
  _lifecycleEventsStreamController =
      StreamController<String>(); // create new stream
  return _lifecycleEventsStreamController?.stream;
}