GpNavigator class
Provee un navigatorKey global para la librería GP
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
- context → BuildContext?
-
Acceso rápido al context actual
no setter
-
final
Static Methods
-
resolve(
BuildContext? provided) → BuildContext? -
Resuelve qué BuildContext usar: el que te pasaron explícito, o si no
hay, el de navigatorKey — mismo criterio que ya usan
GpNotification/GpSnackBarpara poder llamarse sincontext(desde un servicio, un interceptor, etc.), siempre quenavigatorKeyesté conectado en elMaterialApp/Routerde la app.