NPage class

path: /path/to/world /user/:id/book/:id/path /user?id=123&bookId=456

Implementers

Constructors

NPage({bool isPrimary = false, String path = '/', List<NPage> pages = const [], required PageBuilder pageBuilder, bool useGroupId = false, RedirectBuilder? redirectBuilder, List<Type> groupList = const []})

Properties

fullPath String
no setter
groupList List<Type>
final
hashCode int
The hash code for this object.
no setterinherited
historyCount int
no setter
index int
no setter
isErrorPage bool
no setter
isPrimary bool
final
pageBuilder PageBuilder
final
pages List<NPage>
final
params List<String>
no setter
path String
final
redirectBuilder RedirectBuilder?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useGroupId bool
final

Methods

contains(NPage page) bool
getGroupId(int id) String?
getNPageFromIndex(int index) NPage?
getRestorationId(int id) String
getUrl(Map params, Map extra) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
redirect(RouteQueueEntry entry, {RedirectBuilder? builder}) RouteQueueEntry
resetId(int? old) → void
toString() String
A string representation of this object.
override

Operators

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

Static Properties

errorNPage NPage
final
newGroupKey Object
groupId token
final

Static Methods

ignoreToken(Object? groupId) Object?
pathToRegExp(NPage page, List<String> parameters) String
resolve(NPageMain root, String location, Map<String, dynamic>? params, Map<String, dynamic>? keys) NPage?