checked property Null safety

bool? checked

If non-null, sets the SemanticsFlag.hasCheckedState semantic to true and the SemanticsConfiguration.isChecked semantic to the given value.

Implementation

bool? get checked => _checked;
void checked=(bool? value)

Implementation

set checked(bool? value) {
  if (checked == value)
    return;
  _checked = value;
  markNeedsSemanticsUpdate();
}