subscribe method

Object subscribe (void onNext(dynamic value), [ void onThrow(dynamic exception), void onReturn() ])

Subscribe to the platform's popState events.

Implementation

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