core/dom_value_web library

Functions

domCheckedValue(Object? target) bool
Read the checked state of a checkbox/radio from a DOM event target (web).
domEventKey(Object? event) String
Read the key of a keyboard event (web).
domEventValue(Object? event) String
Read event.target.value from a DOM event (web) — for handlers that only have the (dynamic) event, not the target.
domInputValue(Object? target) String
Read the value of 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 selectedIndex of a
domStopPropagation(Object? event) → void
Call event.stopPropagation() on a DOM event (web).