RouteConfig class

Describes when, how and what will be used in Router

Annotations

Constructors

RouteConfig({required Page page({RouteState? state}), required RouteState state(Uri? uri), required bool isThisPage(RouteState state), required Map<String, String?>? settings(RouteState state)})

Properties

hashCode int
The hash code for this object.
no setterinherited
isThisPage bool Function(RouteState state)
condition for use this page in navigator action
final
page Page Function({RouteState? state})
function for create a page from settings, widget, and set animation transaction
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings Map<String, String?>? Function(RouteState state)
get setting from state(url)
final
state RouteState Function(Uri? uri)
clean uri to page RouteState using for calculate previos state when set any uri from browser
final

Methods

copyWith({RouteState state(Uri? uri)?, bool isThisPage(RouteState state)?, Map<String, String> settings(RouteState state)?, Page page({RouteState? state})?}) RouteConfig
update state
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