PowerMetrics constructor

PowerMetrics({
  1. double? ch1Voltage,
  2. double? ch1Current,
  3. double? ch2Voltage,
  4. double? ch2Current,
  5. double? ch3Voltage,
  6. double? ch3Current,
  7. double? ch4Voltage,
  8. double? ch4Current,
  9. double? ch5Voltage,
  10. double? ch5Current,
  11. double? ch6Voltage,
  12. double? ch6Current,
  13. double? ch7Voltage,
  14. double? ch7Current,
  15. double? ch8Voltage,
  16. double? ch8Current,
})

Implementation

factory PowerMetrics({
  $core.double? ch1Voltage,
  $core.double? ch1Current,
  $core.double? ch2Voltage,
  $core.double? ch2Current,
  $core.double? ch3Voltage,
  $core.double? ch3Current,
  $core.double? ch4Voltage,
  $core.double? ch4Current,
  $core.double? ch5Voltage,
  $core.double? ch5Current,
  $core.double? ch6Voltage,
  $core.double? ch6Current,
  $core.double? ch7Voltage,
  $core.double? ch7Current,
  $core.double? ch8Voltage,
  $core.double? ch8Current,
}) {
  final result = create();
  if (ch1Voltage != null) result.ch1Voltage = ch1Voltage;
  if (ch1Current != null) result.ch1Current = ch1Current;
  if (ch2Voltage != null) result.ch2Voltage = ch2Voltage;
  if (ch2Current != null) result.ch2Current = ch2Current;
  if (ch3Voltage != null) result.ch3Voltage = ch3Voltage;
  if (ch3Current != null) result.ch3Current = ch3Current;
  if (ch4Voltage != null) result.ch4Voltage = ch4Voltage;
  if (ch4Current != null) result.ch4Current = ch4Current;
  if (ch5Voltage != null) result.ch5Voltage = ch5Voltage;
  if (ch5Current != null) result.ch5Current = ch5Current;
  if (ch6Voltage != null) result.ch6Voltage = ch6Voltage;
  if (ch6Current != null) result.ch6Current = ch6Current;
  if (ch7Voltage != null) result.ch7Voltage = ch7Voltage;
  if (ch7Current != null) result.ch7Current = ch7Current;
  if (ch8Voltage != null) result.ch8Voltage = ch8Voltage;
  if (ch8Current != null) result.ch8Current = ch8Current;
  return result;
}