Widget class abstract

Describes the configuration for an RenderElement.

Widgets are the central class hierarchy in the Rad framework. A widget is an immutable description of part of a user interface. Widgets can be inflated into render elements.

Implementers
Annotations
  • @immutable

Constructors

Widget({Key? key})
const

Properties

correspondingTag DomTagType?
Corresponding HTML tag to use to render this widget
no setter
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.
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 setter
widgetEventListeners Map<DomEventType, EventCallback?>
Events that this widget is listening to in bubbling phase.
no setter

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.
shouldUpdateWidgetChildren(Widget oldWidget, bool shouldUpdateWidget) bool
Whether to update current widget's children.
toString() String
A string representation of this object.
inherited

Operators

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