ReevaluatableRouteMatch<T, R> class

When a route is re-evaluated this class is used to hold currentPage instance which will be used in-case there's no need to create a new one

Inheritance
Annotations

Constructors

ReevaluatableRouteMatch({required AutoRoutePage<R> currentPage, required RouteMatch originalMatch})
Creates a new instance of ReevaluatableRouteMatch

Properties

allowSnapshotting → bool
Helper to access AutoRoute.allowSnapshotting
no setterinherited
args → T?
The typed args extracted from PageRouteInfo.args
finalinherited
autoFilled → bool
Whether this matched is a result of RouteMatcher.buildPathTo
finalinherited
children → List<RouteMatch>?
The list of child matches of this match
finalinherited
currentPage → AutoRoutePage<R>
The current page instance
final
evaluatedGuards → List<AutoRouteGuard>
Holds a list of already evaluated guards for this match before it enter guard process
no setterinherited
flattened → List<RouteMatch>
Returns a flattened list of this match and it's sub-matches e.g if we have = RouteMatch1[RouteMatch2RouteMatch3] the result is RouteMatch1,RouteMatch2,RouteMatch3
no setterinherited
fragment → String
The url fragment form Uri.fragment
finalinherited
fromRedirect → bool
Whether this match is a result of a RedirectRoute
no setterinherited
fullPath → String
Joins all segments to a valid path
no setterinherited
fullscreenDialog → bool
Helper to access AutoRoute.fullscreenDialog
no setterinherited
guards → List<AutoRouteGuard>
The list of AutoRouteGuard's this route will go through before being presented
no setterinherited
hasChildren → bool
Whether this match has nested child-matches
no setterinherited
hasEmptyPath → bool
Whether the matched-entry has an empty path
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → LocalKey
The unique key of this match
finalinherited
isBranch → bool
Whether is route is a parent route
no setterinherited
keepHistory → bool
Helper to access AutoRoute.keepHistory
no setterinherited
key → LocalKey
The page key to be used in AutoRoutePage.canUpdate
finalinherited
maintainState → bool
Helper to access AutoRoute.maintainState
no setterinherited
meta → Map<String, dynamic>
Helper to access AutoRoute.meta
no setterinherited
name → String
The name of matched route-entry
no setterinherited
originalMatch → RouteMatch
The original match that was used to create this instance
final
params → Parameters
The extracted path params either from rawPath or PageRouteInfo implementation
finalinherited
path → String
The path of matched route-entry
no setterinherited
pathParams → Parameters
The path parameters of the route
no setterinherited
queryParams → Parameters
The extracted path params either from rawPath or PageRouteInfo implementation
finalinherited
redirectedFrom → String?
If this match is a result of a RedirectRoute this will be populated with that route's path
finalinherited
restorationId → RestorationIdBuilder?
Helper to access AutoRoute.restorationId
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segments → List<String>
The expended path segments of this match
finalinherited
stringMatch → String
The expended path of this match e.g path = /path/:id => stringMatch = 'path/1'
finalinherited
titleBuilder → TitleBuilder?
Helper to access AutoRoute.title
no setterinherited
type → RouteType?
Helper to access AutoRoute.type
no setterinherited

Methods

allSegments({bool includeEmpty = false}) → List<String>
Collects top-most matched segments from all child-matches
inherited
buildPage<R>(RouteData data) → AutoRoutePage<R>
Helper to access AutoRoute.buildPage
inherited
copyWith({String? stringMatch, Parameters? pathParams, Parameters? queryParams, List<RouteMatch>? children, String? fragment, List<String>? segments, String? redirectedFrom, Object? args, LocalKey? key, AutoRoute? config, bool? autoFilled, List<AutoRouteGuard>? evaluatedGuards}) → ReevaluatableRouteMatch<T, R>
Returns a new instance of RouteMatch with the overridden values
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toPageRouteInfo() → PageRouteInfo<Object?>
Returns a new instance of PageRouteInfo from the current RouteMatch instance
inherited
toString() → String
A string representation of this object.
inherited
withId(LocalKey newId) → RouteMatch
Returns a new instance of RouteMatch with the overridden id
inherited

Operators

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