Called when the user toggles the switch on or off.
The switch passes the new value to the callback and
final FutureOr<bool> Function(bool to) onTap;