DefSwitchVector constructor

const DefSwitchVector({
  1. required String device,
  2. required String name,
  3. String? label,
  4. String? group,
  5. PropertyState state = PropertyState.idle,
  6. PropertyPermission perm = PropertyPermission.readWrite,
  7. SwitchRule rule = SwitchRule.anyOfMany,
  8. double? timeout,
  9. DateTime? timestamp,
  10. String? message,
  11. 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,
});