SwitchState constructor

const SwitchState({
  1. Key? key,
  2. required bool value,
  3. required SwitchStateBuilder builder,
  4. ValueChanged<bool>? onChanged,
  5. ValueCallback<BuildContext>? initState,
  6. ValueCallback<BuildContext>? dispose,
  7. ValueCallback<BuildContext>? didChangeDependencies,
  8. ValueCallback<BuildContext>? didUpdateWidget,
  9. SwitchStateWaitChanged? onWaitChanged,
})

Implementation

const SwitchState({
  super.key,
  required this.value,
  required this.builder,
  this.onChanged,
  this.initState,
  this.dispose,
  this.didChangeDependencies,
  this.didUpdateWidget,
  this.onWaitChanged,
});