domCheckedValue function

bool domCheckedValue(
  1. Object? target
)

Read the checked state of a checkbox/radio from a DOM event target (web).

Implementation

bool domCheckedValue(Object? target) {
  final JSObject? obj = target as JSObject?;
  final JSAny? v = obj?.getProperty<JSAny?>('checked'.toJS);
  return (v as JSBoolean?)?.toDart ?? false;
}