Callback triggered when the toggle switch state changes.
final FutureOr<void> Function(bool)? onChanged;