onToggle property

void Function(bool value) onToggle
final

Called when the value of the toggle change.

This callback passes a new value, but doesn't update its state internally.

@required

Implementation

final void Function(bool value) onToggle;