Route class

Route defines a path and a componentFactory that can be used by the Router to render the result of a given Route's componentFactory when the current url's path matches the Route's path.

Annotations

Constructors

Route({@required String path, @required RouteVNodeFactory componentFactory, bool useAsDefault: false})

Properties

componentFactory RouteVNodeFactory
final
hashCode int
The hash code for this object. [...]
read-only, inherited
path String
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
useAsDefault bool
useAsDefault should be set to true if you would like the router to use this Route when the current route does not match any Routes provided to the Router
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited