Route class Null safety

Navigator's Route.

A Route act as a wrapper for your page contents. Along with page, it contains routing specific information that helps Navigator manage this widget position in tree.

See also:

Inheritance
Implementers

Constructors

Route({Key? key, String? path, required String name, required Widget page})
const

Properties

correspondingTag DomTagType
Corresponding HTML tag to use to render this widget
read-only, override
hashCode int
The hash code for this object.
read-only, inherited
initialKey Key
final, inherited
name String
Name of the Route.
final
page Widget
Route's contents.
final
path String
Name of the Route path.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
widgetCaptureEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to in capturing phase.
read-only, inherited
widgetChildren List<Widget>
Child widgets if any.
read-only, override
widgetEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to.
read-only, inherited
widgetType String
Type of widget.
@nonVirtual, read-only, override

Methods

createConfiguration() WidgetConfiguration
Create widget's configuration.
override
createRenderObject(BuildContext context) RenderObject
Called when framework needs a RenderObject for current widget.
override
isConfigurationChanged(covariant RouteConfiguration oldConfiguration) bool
Whether configuration has changed.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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