toggleChecked method

  1. @visibleForTesting
void toggleChecked()

Implementation

@visibleForTesting
void toggleChecked() {
  if (!disabled) {
    checked = !checked;
    _controller.add(checked);
    _onTouched?.call();
  }
}