DefSwitch constructor
const
DefSwitch({
- required String name,
- String? label,
- required SwitchState state,
Creates a switch element definition.
Implementation
const DefSwitch({required super.name, super.label, required this.state});