ParameterTile constructor

ParameterTile({
  1. Key? key,
  2. required int deviceId,
  3. required String name,
  4. String? value,
  5. DateTime? controllerClockTime,
  6. GeneratorTrend? trend,
  7. String? tooltip,
  8. LoadShedValue? loadShed,
  9. PimValue? pim,
  10. ConnectionType? connectionType,
  11. String? infoText,
  12. Set<String>? existingNames,
})

Implementation

ParameterTile({
  super.key,
  required this.deviceId,
  required this.name,
  this.value,
  this.controllerClockTime,
  this.trend,
  this.tooltip,
  this.loadShed,
  this.pim,
  this.connectionType,
  this.infoText,
  this.existingNames,
})  : assert([trend, tooltip].whereNotNull().length <= 1),
      assert(
        [value, loadShed, pim, connectionType, controllerClockTime]
                .whereNotNull()
                .length <=
            1,
      );