when<TResult extends Object?> method
- required TResult source(
- String id,
- String name,
- ElectricalState state,
- double nominalVoltage,
- double shortCircuitCapacity,
- ConductorAttributes? mainFeedCable,
- MeasurementState? lastMeasurement,
- AssetMetadata assetMetadata,
- List<
ElectricalNodeDto> children,
- required TResult panel(
- String id,
- String name,
- ElectricalState state,
- double nominalVoltage,
- ConductorAttributes? inputCable,
- MeasurementState? lastMeasurement,
- AssetMetadata assetMetadata,
- List<
ElectricalNodeDto> children,
- required TResult protection(
- String id,
- String name,
- ElectricalState state,
- MeasurementState? lastMeasurement,
- AssetMetadata assetMetadata,
- ProtectionType protectionType,
- double ratingAmps,
- double? pdc,
- String curve,
- double sensitivity,
- int poles,
- List<
ElectricalNodeDto> children, - CatalogMetadata? catalogData,
- CatalogMetadata? cableCatalogData,
- required TResult load(
- String id,
- String name,
- ElectricalState state,
- ConductorAttributes? inputCable,
- MeasurementState? lastMeasurement,
- AssetMetadata assetMetadata,
- double powerWatts,
- double cosPhi,
- LoadType type,
- bool isThreePhase,
- CatalogMetadata? cableCatalogData,
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(
String id,
String name,
ElectricalState state,
double nominalVoltage,
double shortCircuitCapacity,
ConductorAttributes? mainFeedCable,
MeasurementState? lastMeasurement,
AssetMetadata assetMetadata,
List<ElectricalNodeDto> children)
source,
required TResult Function(
String id,
String name,
ElectricalState state,
double nominalVoltage,
ConductorAttributes? inputCable,
MeasurementState? lastMeasurement,
AssetMetadata assetMetadata,
List<ElectricalNodeDto> children)
panel,
required TResult Function(
String id,
String name,
ElectricalState state,
MeasurementState? lastMeasurement,
AssetMetadata assetMetadata,
ProtectionType protectionType,
double ratingAmps,
double? pdc,
String curve,
double sensitivity,
int poles,
List<ElectricalNodeDto> children,
CatalogMetadata? catalogData,
CatalogMetadata? cableCatalogData)
protection,
required TResult Function(
String id,
String name,
ElectricalState state,
ConductorAttributes? inputCable,
MeasurementState? lastMeasurement,
AssetMetadata assetMetadata,
double powerWatts,
double cosPhi,
LoadType type,
bool isThreePhase,
CatalogMetadata? cableCatalogData)
load,
}) =>
throw _privateConstructorUsedError;