onTap property
Callback when tapped - implement your logic here The callback receives the new enabled state after toggle
Implementation
final Function(bool newState)? onTap;
Callback when tapped - implement your logic here The callback receives the new enabled state after toggle
final Function(bool newState)? onTap;