GpNavigator class

Provee un navigatorKey global para la librería GP

Constructors

GpNavigator()

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/GpSnackBar para poder llamarse sin context (desde un servicio, un interceptor, etc.), siempre que navigatorKey esté conectado en el MaterialApp/Router de la app.