NRouterDelegate class

Inheritance
Mixed-in types
Available extensions

Constructors

NRouterDelegate({String? restorationId, required NPageMain rootPage, required NRouter router})

Properties

currentConfiguration → RouteQueue?
Called by the Router when it detects a route information may have changed as a result of rebuild.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
The key used for retrieving the current navigator.
final
random → Random
final
restorationId → String?
final
rootPage → NPageMain
final
routeQueue → RouteQueue
no setter
router → NRouter
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updateLocation → bool
no setter

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
build(BuildContext context) → Widget
Called by the Router to obtain the widget tree that represents the current state.
override
canPop() → bool
createEntry(NPage page, {Map<String, dynamic> params = const {}, Map<String, dynamic>? extra, Object? groupId}) → RouteQueueEntry
dispose() → void
Discards any resources used by the object.
inherited
go(String location, {Map<String, dynamic> params = const {}, Map<String, dynamic>? extra, Object? groupId}) → RouteQueueEntry
goPage(NPage page, {Map<String, dynamic> params = const {}, Map<String, dynamic>? extra, Object? groupId}) → RouteQueueEntry
goPageRepalcement(NPage page, UntilFn test, {Map<String, dynamic> params = const {}, Map<String, dynamic>? extra, Object? groupId, Object? result}) → RouteQueueEntry
goPageUntil(NPage page, UntilFn test, {Map<String, dynamic> params = const {}, Map<String, dynamic>? extra, Object? groupId}) → RouteQueueEntry
goReplacement(String location, {Map<String, dynamic> params = const {}, Map<String, dynamic>? extra, Object? groupId, Object? result}) → RouteQueueEntry
goUntil(String location, UntilFn test) → RouteQueueEntry
init(Map<String, dynamic> params, Map<String, dynamic>? extra, Object? groupId) → void
isValid(String location) → bool
maybePop() → Future<bool>
newPageKey({String prefix = 'n+'}) → ValueKey<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
pop([Object? result]) → void
popRoute() → Future<bool>
Called by the Router when the Router.backButtonDispatcher reports that the operating system is requesting that the current route be popped.
inherited
popUntil(UntilFn test) → void
popUntilNav(UntilFn test) → void
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
select<T>(ShouldNotify<T, D> notifyValue, {Object? key}) → ChangeNotifierSelector<T, D>

Available on D, provided by the ValueNotifierSelector extension

setInitialRoutePath(RouteQueue configuration) → Future<void>
Called by the Router at startup with the structure that the RouteInformationParser obtained from parsing the initial route.
inherited
setNewRoutePath(RouteQueue configuration) → Future<void>
Called by the Router when the Router.routeInformationProvider reports that a new route has been pushed to the application by the operating system.
override
setRestoredRoutePath(RouteQueue configuration) → Future<void>
Called by the Router during state restoration.
inherited
toString() → String
A string representation of this object.
inherited
wr(Widget builder(T value)) → Widget

Available on T, provided by the ListenableWidget extension

wrap(Widget builder(BuildContext context, T value)) → Widget

Available on T, provided by the ListenableWidget extension

Operators

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