M3ESwitch constructor

const M3ESwitch({
  1. required bool value,
  2. required ValueChanged<bool>? onChanged,
  3. Widget? selectedIcon,
  4. Widget? unselectedIcon,
  5. double? stateLayerSize,
  6. FocusNode? focusNode,
  7. bool autofocus = false,
  8. String? semanticLabel,
  9. Key? key,
})

M3ESwitch.

Implementation

const M3ESwitch({
  required this.value,
  required this.onChanged,
  this.selectedIcon,
  this.unselectedIcon,
  this.stateLayerSize,
  this.focusNode,
  this.autofocus = false,
  this.semanticLabel,
  super.key,
});