onSwitch property

void Function(bool)? onSwitch
final

Callback when the switch state changes (tapped).

Implementation

final void Function(bool)? onSwitch;