NamedRouteDefinition class

This an implementation of the RouteDefinition class

Can be used for simple named routing

E.g. NamedRouteDefinition(route: "main", builder: (ctx, settings)=>Container(...))

Implemented types

Constructors

NamedRouteDefinition({required String route, required RouteWidgetBuilder builder, RouteBuilder? routeBuilder})

Properties

builder → RouteWidgetBuilder
The builder for the screen, bringing in the settings from the route e.g. (ctx, setting) => nil
final
hashCode → int
The hash code for this object.
no setterinherited
route → String
The Route this NamedRoute maps to E.g. /main
final
routeBuilder ↔ RouteBuilder?
An optional routeBuilder over-ride This is if you want to control the page transitions.
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.
override

Operators

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