Widget class abstract

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

Implementers

Constructors

Widget(WidgetElement _html(Widget widget), String? _styles()?)

Properties

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

Methods

activity() → void
Implementation of widget functionality.
destroy() → void
initialize(Element element, bool replace) → void
Starts the activity and watcher Widget.
initializeLazyLoading(Element slot) → void
Enables lazy loading for the slot to be initialized on the page when it is queued.
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.
mount(Widget parent) → void
Mounts the widget in the parent, and starts the activity.
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.
onMount() → void
Implementation of widget functionality. It differs from the activity in that it starts only when the widget is mounted.
toSlot(int id, {bool? lazy}) → void
Mounts the widget in the specified slot.
toString() String
A string representation of this object.
inherited

Operators

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