updateShouldNotify method

  1. @override
bool updateShouldNotify(
  1. covariant RouteScopeProvider oldComponent
)

Whether the framework should notify components that inherit from this component.

Implementation

@override
bool updateShouldNotify(covariant RouteScopeProvider oldComponent) {
  return router != oldComponent.router ||
      route != oldComponent.route ||
      location.uri != oldComponent.location.uri ||
      location.state != oldComponent.location.state ||
      fromLocation != oldComponent.fromLocation ||
      params.toString() != oldComponent.params.toString() ||
      query.toString() != oldComponent.query.toString();
}