UriRoute class

Meant for PathedRoutes

This will match everything that hits it, and echo it's value into the settings Primarily, this is for like /path/items/321

where you want "321" in the Settings so you can inflate a page with ID 321

Since this will match everything, it's recommended to only be used in conjunction with pathed route.

Implemented types

Constructors

UriRoute(Widget echoBuilder(BuildContext, Uri uri))

Properties

builder RouteWidgetBuilder
This is the builder for the content
no setteroverride
echoBuilder Widget Function(BuildContext, Uri uri)
final
hashCode int
The hash code for this object.
no setterinherited
routeBuilder RouteBuilder?
This is an optional RouteBuilder
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

matches(RouteSettings settings) bool
If this route definition matches a RouteSettings object
override
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