subscribe method

Object subscribe(
  1. void onNext(
    1. Object
    ), [
  2. void onThrow(
    1. Object
    )?,
  3. void onReturn()?
])

Subscribe to the platform's popState events.

Implementation

Object subscribe(
  void Function(Object) onNext, [
  void Function(Object)? onThrow,
  void Function()? onReturn,
]) {
  return _subject.stream.listen(onNext, onError: onThrow, onDone: onReturn);
}