checked property

bool get checked

Whether button is checked.

Implementation

bool get checked => _checked;
  1. @Input()
set checked (bool? newValue)

Current state of the checkbox. This is user set-able state, via toggleChecked(), so when checked, the indeterminate state gets cleared.

true is CHECKED and false is not.

Implementation

@Input()
set checked(bool? newValue) {
  if (_checked == newValue) return;
  _setStates(checked: newValue ?? false);
}