CupertinoSwitchState constructor

const CupertinoSwitchState({
  1. Key? key,
  2. required bool value,
  3. ValueChanged<bool>? onChanged,
  4. SwitchStateChanged? onWaitChanged,
  5. Color? activeColor,
  6. Color? trackColor,
  7. Color? thumbColor,
  8. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  9. ValueCallback<BuildContext>? initState,
  10. ValueCallback<BuildContext>? dispose,
  11. ValueCallback<BuildContext>? didChangeDependencies,
  12. 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});