onChanged property
set
onChanged
(ValueChanged<bool> callback)
Sets the callback invoked when the toggle value changes.
Implementation
set onChanged(ValueChanged<bool> callback) => _onChanged = callback;