duxt_html library

Flutter-style HTML components for Jaspr.

This library provides PascalCase HTML components with Flutter-like patterns, making it easier for Flutter developers to work with Jaspr.

Example

import 'package:duxt_html/duxt_html.dart';

Div(
  className: 'container mx-auto',
  children: [
    H1(child: Text('Welcome')),
    P(className: 'text-gray-600', child: Text('Hello world')),
    Ul(children: [
      Li(child: Text('Item 1')),
      Li(child: Text('Item 2')),
    ]),
    Form(
      children: [
        Input(type: 'text', name: 'email', placeholder: 'Email'),
        Button(type: 'submit', child: Text('Submit')),
      ],
    ),
  ],
)

Classes

Color
A CSS color value.
Colors
Predefined CSS color names.
Component
Describes the configuration for an Element.
Key
A Key is an identifier for Components and Elements.
Styles
Represents a set of css styles.
Unit
Represents a CSS unit value.

Enums

AutoComplete
Indicates whether input elements can by default have their values automatically completed by the browser. autocomplete attributes on form elements override it on <form>.
ButtonType
Defines the default behavior of a button.
CrossOrigin
Indicates if the fetching of the media must be done using a CORS request. Media data from a CORS request can be reused in the <canvas> element without being marked "tainted". If the crossorigin attribute is not specified, then a non-CORS request is sent (without the Origin request header), and the browser marks the media as tainted and restricts access to its data, preventing its usage in <canvas> elements. If the crossorigin attribute is specified, then a CORS request is sent (with the Origin request header); but if the server does not opt into allowing cross-origin access to the media data by the origin site (by not sending any Access-Control-Allow-Origin response header, or by not including the site's origin in any Access-Control-Allow-Origin response header it does send), then the browser blocks the media from loading, and logs a CORS error to the devtools console.
FormEncType
The MIME type of a form submission.
FormMethod
The HTTP method to submit a form with.
InputType
The type for an <input> element.
MediaLoading
Indicates how the browser should load the media. Loading is only deferred when JavaScript is enabled.
NumberingType
The numbering type for a list element.
Preload
Intended to provide a hint to the browser about what the author thinks will lead to the best user experience when loading a media object. The default value is different for each browser. The spec advises it to be set to Preload.metadata.
ReferrerPolicy
The Referrer-Policy controls how much referrer information (sent with the Referer header) should be included with requests.
SpellCheck
Specifies whether an element is subject to spell checking by the underlying browser/OS.
Target
The name/keyword for a browsing context (a tab, window, or <iframe>).
TextWrap
Indicates how the control wraps text.

Functions

A({required String href, String? className, String? style, String? id, String? download, Target? target, String? type, ReferrerPolicy? referrerPolicy, VoidCallback? onClick, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An anchor (hyperlink) element.
Abbr({String? title, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An abbreviation element.
Address({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An address element.
Area({String? href, String? alt, String? shape, String? coords, String? target, String? download, String? className, String? style, String? id, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An area element.
Article({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An article element.
Aside({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An aside element.
Audio({String? className, String? style, String? id, String? src, bool autoplay = false, bool controls = false, bool loop = false, bool muted = false, CrossOrigin? crossOrigin, Preload? preload, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An audio element.
B({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A bold text element.
Base({String? href, String? target, String? className, String? style, String? id, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A base element.
Bdi({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A bidirectional isolate element.
Bdo({String? dir, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A bidirectional override element.
Blockquote({String? className, String? style, String? id, String? cite, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A blockquote element.
Body({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A body element.
Br({String? className, String? style, String? id, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A line break element.
Button({String? type, String? className, String? style, String? id, bool autofocus = false, bool disabled = false, VoidCallback? onClick, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A button element.
Canvas({int? width, int? height, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A canvas element.
Caption({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A table caption element.
Circle({String? className, String? style, String? id, String? cx, String? cy, String? r, Color? fill, Color? stroke, String? strokeWidth, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An SVG circle element.
Cite({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A citation element.
Code({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A code element.
Col({String? className, String? style, String? id, int? span, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A table column element.
Colgroup({String? className, String? style, String? id, int? span, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A table column group element.
Datalist({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A datalist element.
Dd({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A description details element.
Del({String? cite, String? dateTime, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A deleted text element.
Details({String? className, String? style, String? id, bool open = false, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A details element.
Dfn({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A definition element.
Dialog({String? className, String? style, String? id, bool open = false, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A dialog element.
Div({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A generic container element.
Dl({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A description list element.
Dt({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A description term element.
Ellipse({String? className, String? style, String? id, String? cx, String? cy, String? rx, String? ry, Color? fill, Color? stroke, String? strokeWidth, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An SVG ellipse element.
Em({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An emphasis element.
Embed({required String src, String? className, String? style, String? id, String? type, int? width, int? height, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An embed element.
Fieldset({String? className, String? style, String? id, String? name, bool disabled = false, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A fieldset element.
Figcaption({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A figcaption element.
Figure({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A figure element.
A footer element.
Form({String? className, String? style, String? id, String? action, FormMethod? method, FormEncType? encType, AutoComplete? autoComplete, String? name, bool noValidate = false, Target? target, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A form element.
Fragment(List<Component> children, {Key? key}) Component
Creates a fragment containing multiple children without a wrapping element.
H1({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A level 1 heading element.
H2({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A level 2 heading element.
H3({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A level 3 heading element.
H4({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A level 4 heading element.
H5({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A level 5 heading element.
H6({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A level 6 heading element.
A head element.
A header element.
Hgroup({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A heading group element.
Hr({String? className, String? style, String? id, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A horizontal rule element.
Html({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An HTML document element.
HtmlData({String? value, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A data element.
HtmlTemplate({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A template element.
HtmlVar({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A variable element.
I({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An italic/idiomatic text element.
Iframe({required String src, String? className, String? style, String? id, String? allow, String? csp, String? name, String? sandbox, int? width, int? height, MediaLoading? loading, ReferrerPolicy? referrerPolicy, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An iframe element.
ImageMap({String? name, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An image map element.
Img({required String src, String? alt, String? className, String? style, String? id, int? width, int? height, CrossOrigin? crossOrigin, MediaLoading? loading, ReferrerPolicy? referrerPolicy, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An image element.
Input({String? type, String? name, String? value, String? placeholder, String? className, String? style, String? id, bool disabled = false, bool? checked, bool? indeterminate, ValueChanged<String>? onInput, ValueChanged<String>? onChange, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An input element.
Ins({String? cite, String? dateTime, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An inserted text element.
Kbd({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A keyboard input element.
Label({String? className, String? style, String? id, String? htmlFor, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A label element.
Legend({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A legend element.
Li({String? className, String? style, String? id, int? value, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A list item element.
Line({String? className, String? style, String? id, String? x1, String? y1, String? x2, String? y2, Color? fill, Color? stroke, String? strokeWidth, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An SVG line element.
Main({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A main element.
Mark({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A mark/highlight element.
A menu element.
Meta({String? name, String? content, String? charset, String? httpEquiv, String? className, String? style, String? id, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A meta element.
Meter({String? className, String? style, String? id, double? value, double? min, double? max, double? low, double? high, double? optimum, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A meter element.
A navigation element.
Noscript({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A noscript element.
ObjectEmbed({String? className, String? style, String? id, String? data, String? name, String? type, int? width, int? height, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An object element.
Ol({String? className, String? style, String? id, bool reversed = false, int? start, NumberingType? type, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An ordered list element.
Optgroup({required String label, String? className, String? style, String? id, bool disabled = false, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An optgroup element.
Option({String? className, String? style, String? id, String? label, String? value, bool selected = false, bool disabled = false, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An option element.
Output({String? htmlFor, String? name, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An output element.
P({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A paragraph element.
parseStyles(String? styleString) Styles?
Parses a raw CSS string into a Styles object.
Path({String? className, String? style, String? id, String? d, Color? fill, Color? stroke, String? strokeWidth, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An SVG path element.
Picture({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A picture element.
Polygon({String? className, String? style, String? id, String? points, Color? fill, Color? stroke, String? strokeWidth, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An SVG polygon element.
Polyline({String? className, String? style, String? id, String? points, Color? fill, Color? stroke, String? strokeWidth, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An SVG polyline element.
Pre({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A preformatted text element.
Progress({String? className, String? style, String? id, double? value, double? max, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A progress element.
Q({String? cite, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An inline quotation element.
Raw(String content, {Key? key}) Component
Creates a raw HTML component from a string.
Rect({String? className, String? style, String? id, String? x, String? y, String? rx, String? ry, String? width, String? height, Color? fill, Color? stroke, String? strokeWidth, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An SVG rectangle element.
resolveChildren(Component? child, List<Component>? children) List<Component>
Resolves child vs children parameters.
Rp({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A ruby fallback parenthesis element.
Rt({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A ruby text element.
Ruby({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A ruby annotation element.
S({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A strikethrough element.
Samp({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A sample output element.
Script({String? src, String? content, bool async = false, bool defer = false, String? className, String? style, String? id, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A script element.
A search element.
Section({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A section element.
Select({String? className, String? style, String? id, String? name, String? value, bool multiple = false, bool required = false, bool disabled = false, bool autofocus = false, String? autocomplete, int? size, ValueChanged<List<String>>? onInput, ValueChanged<List<String>>? onChange, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A select element.
Slot({String? name, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A slot element.
Small({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A small print element.
Source({String? className, String? style, String? id, String? src, String? type, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A source element.
Span({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A span element.
Strong({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A strong importance element.
StyleElement({String? content, String? media, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A style element.
Sub({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A subscript element.
Summary({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A summary element.
Sup({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A superscript element.
Svg({String? className, String? style, String? id, String? viewBox, Unit? width, Unit? height, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An SVG container element.
Table({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A table element.
Tbody({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A table body element.
Td({String? className, String? style, String? id, int? colspan, int? rowspan, String? headers, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A table data cell element.
Text(String content, {Key? key}) Component
Creates a Text component from a string.
Textarea({String? className, String? style, String? id, String? name, String? placeholder, int? cols, int? rows, int? minLength, bool autofocus = false, bool disabled = false, bool readonly = false, bool required = false, AutoComplete? autoComplete, SpellCheck? spellCheck, TextWrap? wrap, ValueChanged<String>? onInput, ValueChanged<String>? onChange, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A textarea element.
Tfoot({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A table foot element.
Th({String? className, String? style, String? id, String? abbr, int? colspan, int? rowspan, String? headers, String? scope, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A table header cell element.
Thead({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A table head element.
Time({String? dateTime, String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A time element.
Title({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A link element.
Tr({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A table row element.
Track({String? src, String? kind, String? srclang, String? label, bool isDefault = false, String? className, String? style, String? id, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A track element.
U({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An underline element.
Ul({String? className, String? style, String? id, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
An unordered list element.
Video({String? className, String? style, String? id, String? src, String? poster, int? width, int? height, bool autoplay = false, bool controls = false, bool loop = false, bool muted = false, CrossOrigin? crossOrigin, Preload? preload, Component? child, List<Component>? children, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A video element.
Wbr({String? className, String? style, String? id, Map<String, String>? attributes, Map<String, EventCallback>? events, Key? key}) Component
A word break opportunity element.

Typedefs

EventCallback = void Function(Event event)
ValueChanged<T> = void Function(T value)
Signature for callbacks that report that an underlying value has changed.
VoidCallback = void Function()
Signature of callbacks that have no arguments and return no data.