DefSwitch constructor

const DefSwitch({
  1. required String name,
  2. String? label,
  3. required SwitchState state,
})

Creates a switch element definition.

Implementation

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