RouteDefinition class

A route definition.

Annotations

Constructors

RouteDefinition(String path, RouteWidgetBuilder widgetBuilder, {String? name, RouterPageBuilder pageBuilder = defaultPageBuilder, List<Middleware> middlewares()?})
Creates a RouteDefinition.

Properties

hashCode → int
The hash code for this object.
no setterinherited
middlewares → List<Middleware>
Gets the route middlewares.
no setter
name → String?
The name.
final
pageBuilder → RouterPageBuilder
The page builder.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
widgetBuilder → RouteWidgetBuilder
The widget builder.
final

Methods

match(String path) → bool
Tests if a path match.
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