onToggle method

void onToggle(
  1. bool newValue
)

Implementation

void onToggle(bool newValue) {
  setProperty('value', newValue);
}