unsubscribeState method

bool unsubscribeState(
  1. RouteAware? object
)

Remove the State object as a route observer.

Implementation

bool unsubscribeState(RouteAware? object) {
  //
  final un = object != null;

  if (un) {
    unsubscribe(object);
  }
  return un;
}