CupertinoSwitchState constructor
const
CupertinoSwitchState({
- Key? key,
- required bool value,
- ValueChanged<
bool> ? onChanged, - SwitchStateChanged? onWaitChanged,
- Color? activeColor,
- Color? trackColor,
- Color? thumbColor,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ValueCallback<
BuildContext> ? initState, - ValueCallback<
BuildContext> ? dispose, - ValueCallback<
BuildContext> ? didChangeDependencies, - ValueCallback<
BuildContext> ? didUpdateWidget,
Implementation
const CupertinoSwitchState(
{super.key,
required this.value,
this.onChanged,
this.onWaitChanged,
this.activeColor,
this.trackColor,
this.thumbColor,
this.dragStartBehavior = DragStartBehavior.start,
this.initState,
this.dispose,
this.didChangeDependencies,
this.didUpdateWidget});