Voyager class Null safety

This class is a composite product of RouterPlugins for the given router's path - this means all the information resolved from the navigation file that is relevant to creating new widget. Once assembled the variables are locked - they can be read but you can't put more.

Constructors

Voyager({required String path, required Map<String, dynamic> pathParams, Voyager? parent, required Map<String, dynamic> config})
default constructor

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
parent Voyager?
parent voyager instance
final
path String
path of this voyager
final
pathParams Map<String, dynamic>
params of the path
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
Voyager's type
read / write

Methods

dispose() → void
dispose this voyager instance
lock() → void
lock this voyager instance
merge(Voyager other) → void
merges other Voyager instance into this one
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onDispose(VoidCallback callback) → void
register dispose callback
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited
operator [](String key) → dynamic
access field resolved by VoyagerPlugin
operator []=(String key, dynamic value) → void
set field when accessing it from VoyagerPlugin

Static Properties

nothing VoyagerNothing
nothing
final

Constants

KEY_TYPE → const String
special node, type
"type"