OneSwitch constructor

const OneSwitch({
  1. required String name,
  2. required SwitchState state,
})

Creates a switch value.

Implementation

const OneSwitch({required super.name, required this.state});