NavigationService class

Provides a global NavigatorState key that apps can wire into their MaterialApp.navigatorKey so that SDK features (e.g. NPS overlays) and app code (e.g. notification-tap callbacks) can obtain a navigation context without passing it explicitly.

Usage is optional — apps that use GoRouter or another router that doesn't rely on a global navigator key can ignore this entirely.

Constructors

factory

Properties

hashCode int
The hash code for this object.
no setterinherited
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance NavigationService
no setter