markup library

Classes

DefaultDomValidator
DOM validator with sane defaults.
DomBuilder<L, V>
DOM builder context.
DomComponent<L, V>
Dynamic component with overrides.
DomElement<L, V>
Element.
DomEvent<L, V>
Data for native DOM events.
DomLifecycleEvent<L>
Data for DOM lifecycle events.
DomNode<L, V>
Low-level component building block.
DomText
Text node.
DomValidator
DOM validation to customize checks.
DomView
Provides lifecycle handling for a hierarchy of components. A DomView re-builds the UI after invalidate() is called.

Functions

renderMarkup({required DomBuilderFn builderFn, DomValidator? domValidator, String? prefixContent}) String
Render markup into a String.
renderMarkupIntoSink<S>({required StringSink sink, required DomBuilderFn builderFn, DomValidator? domValidator}) → void
Render markup into a String Sink.

Typedefs

DomBuilderFn<L, V> = void Function(DomBuilder<L, V> b)
DOM builder function.
DomEventFn<L, V> = dynamic Function(DomEvent<L, V> event)
DOM event callback function.
DomLifecycleEventFn<L> = dynamic Function(DomLifecycleEvent<L> event)
DOM lifecycle event callback function.