DeviceControl constructor

DeviceControl({
  1. Key? key,
  2. required bool onOff,
  3. ValueChanged<bool>? onChangedCallback,
})

Implementation

DeviceControl({
  Key? key,
  required this.onOff,
  this.onChangedCallback,
}) : super(key: key);