subscribe method

bool subscribe(
  1. State<StatefulWidget> state
)

State object becomes a route observer.

Implementation

bool subscribe(State state) => _stateRouteObserver.subscribe(state);