whenOrNull<TResult extends Object?> method
- TResult? source(
- String id,
- String name,
- ElectricalState state,
- double nominalVoltage,
- double shortCircuitCapacity,
- ConductorAttributes? mainFeedCable,
- MeasurementState? lastMeasurement,
- AssetMetadata assetMetadata,
- List<
ElectricalNodeDto> children,
- TResult? panel(
- String id,
- String name,
- ElectricalState state,
- double nominalVoltage,
- ConductorAttributes? inputCable,
- MeasurementState? lastMeasurement,
- AssetMetadata assetMetadata,
- List<
ElectricalNodeDto> children,
- 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,
- 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? whenOrNull<TResult extends Object?>({
TResult? Function(
String id,
String name,
ElectricalState state,
double nominalVoltage,
double shortCircuitCapacity,
ConductorAttributes? mainFeedCable,
MeasurementState? lastMeasurement,
AssetMetadata assetMetadata,
List<ElectricalNodeDto> children)?
source,
TResult? Function(
String id,
String name,
ElectricalState state,
double nominalVoltage,
ConductorAttributes? inputCable,
MeasurementState? lastMeasurement,
AssetMetadata assetMetadata,
List<ElectricalNodeDto> children)?
panel,
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,
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;