onSwitch property

void Function(bool)? onSwitch
final

Callback when switch is tapped/clicked

Implementation

final void Function(bool)? onSwitch;