readChecked function
Implementation
bool? readChecked(Element element) {
final sw = _selfOrAncestor<Switch>(element);
if (sw != null) return sw.value;
final cupertino = _selfOrAncestor<CupertinoSwitch>(element);
if (cupertino != null) return cupertino.value;
final cb = _selfOrAncestor<Checkbox>(element);
if (cb != null) return cb.value;
return null;
}