core/dom_value_web library
Functions
-
domCheckedValue(
Object? target) → bool -
Read the
checkedstate of a checkbox/radio from a DOM event target (web). -
domEventDetailNumber(
Object? event, String key) → double? -
Read a numeric field from a CustomEvent's
detailobject (web). -
domEventIsComposing(
Object? event) → bool - Whether a keyboard event is still confirming an input-method composition.
-
domEventKey(
Object? event) → String -
Read the
keyof a keyboard event (web). -
domEventTargetAttribute(
Object? event, String name) → String - Read an attribute from the DOM event target (web).
-
domEventValue(
Object? event) → String -
Read
event.target.valuefrom a DOM event (web) — for handlers that only have the (dynamic) event, not the target. -
domInputValue(
Object? target) → String -
Read the
valueof a form control from a DOM event target (web) via an explicit JS property read — avoids dynamic dispatch on package:web extension types, which throws on dart2js (Dart 3.11). -
domPreventDefault(
Object? event) → void -
Call
event.preventDefault()on a DOM event (web). -
domSelectedIndex(
Object? target) → int -
Read the
selectedIndexof a -
domStopPropagation(
Object? event) → void -
Call
event.stopPropagation()on a DOM event (web).