core/dom_value_web library
Functions
-
domCheckedValue(
Object? target) → bool -
Read the
checkedstate of a checkbox/radio from a DOM event target (web). -
domEventKey(
Object? event) → String -
Read the
keyof a keyboard event (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).