PowerMetrics constructor
PowerMetrics({
- double? ch1Voltage,
- double? ch1Current,
- double? ch2Voltage,
- double? ch2Current,
- double? ch3Voltage,
- double? ch3Current,
- double? ch4Voltage,
- double? ch4Current,
- double? ch5Voltage,
- double? ch5Current,
- double? ch6Voltage,
- double? ch6Current,
- double? ch7Voltage,
- double? ch7Current,
- double? ch8Voltage,
- 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;
}