onSwitch property

void Function(bool) onSwitch
final

Called on switch, passes the current value

Implementation

// ignore: avoid_positional_boolean_parameters
final void Function(bool) onSwitch;