Route class

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

child Widget
Child widget.
finalinherited
correspondingTag DomTagType
Corresponding HTML tag to use to render this widget
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
key Key?
Keys help Rad identify which widgets have changed, are added, or are removed when a widget has multiple sibling widgets.
finalinherited
name String
Name of the Route.
final
path String
Actual Route's path.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
widgetCaptureEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to in capturing phase.
no setterinherited
widgetEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to in bubbling phase.
no setterinherited

Methods

createRenderElement(RenderElement parent) RenderElement
Create element for current widget.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldUpdateWidget(Widget oldWidget) bool
Whether to update current widget.
override
shouldUpdateWidgetChildren(Widget oldWidget, bool shouldUpdateWidget) bool
Whether to update current widget's children.
inherited
toString() String
A string representation of this object.
inherited

Operators

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