toggle method

  1. @override
bool toggle(
  1. String id,
  2. bool check, [
  3. bool notify = false
])
override

勾选单个CheckBox

Implementation

@override
bool toggle(String id, bool check, [bool notify = false]) {
  checkBoxStates.forEach((key, value) {
    checkBoxStates[key] = false;
  });
  return super.toggle(id, check, true);
}