WidgetRouter class

The parent of all widgets. You must extend it if you want to create a widget.

Inheritance

Constructors

WidgetRouter(WidgetElement html(Widget widget), String? styles()?)

Properties

hashCode int
The hash code for this object.
no setterinherited
node → VirtualNodeWidget
no setterinherited
remNodes List<VirtualNodeWidget>
Contains nodes that will be removed. Not recommended for use.
finalinherited
remOnceNodes List<List>
Contains nodes that will be removed on condition.
finalinherited
remOnNodes Map<int, List>
Contains the nodes that will be removed or added under the condition.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activity() → void
Implementation of widget functionality.
inherited
destroy() → void
inherited
initialize(Element element, bool replace) → void
Starts the activity and watcher Widget.
inherited
initializeLazyLoading(Element slot) → void
Enables lazy loading for the slot to be initialized on the page when it is queued.
inherited
inject(Element? htmlElement) → void
Mounts the widget directly to the HTML element (htmlElement), used to insert in HTML element if Reio was not previously inserted in it.
inherited
mount(Widget parent) → void
Mounts the widget in the parent, and starts the activity.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDestroy() → void
The implementation of the widget functionality. It differs from activity in that it is run only when the widget is destroyed.
inherited
onMount() → void
Implementation of widget functionality. It differs from the activity in that it starts only when the widget is mounted.
inherited
toRoute(int slotId, {List<String>? staticPath, List<String>? dynamicPath}) → void
Mounts the widget in the specified slot. staticPath - A strictly specified path to anything. dynamicPath - A regular expression that allows you to set your targets.
toSlot(int id, {bool? lazy}) → void
Mounts the widget in the specified slot.
inherited
toString() String
A string representation of this object.
inherited

Operators

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