Widget class abstract

Flutter-like widgets for building UIs with HTML elements. Define the build method to create a new widget.

class NotFoundPage extends Widget {
  @override
  Element build() => paragraphElement(text: '404: Not found');
}
Implementers

Constructors

Widget({required Key? key})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
key Key?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

inflate(BuildContext context) → void
Set this widget context, build it’s child, and render the widget, updating Context.element When overriding pay attention that inflate need to call build and render
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render(BuildContext context) Element
Render the DOM element and add it to the context.
toString() String
A string representation of this object.
inherited

Operators

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