DefSwitchVector constructor
const
DefSwitchVector({
- required String device,
- required String name,
- String? label,
- String? group,
- PropertyState state = PropertyState.idle,
- PropertyPermission perm = PropertyPermission.readWrite,
- SwitchRule rule = SwitchRule.anyOfMany,
- double? timeout,
- DateTime? timestamp,
- String? message,
- required List<
DefSwitch> elements,
Creates a switch property definition.
Implementation
const DefSwitchVector({
required super.device,
required super.name,
super.label,
super.group,
super.state,
this.perm = PropertyPermission.readWrite,
this.rule = SwitchRule.anyOfMany,
super.timeout,
super.timestamp,
super.message,
required super.elements,
});