ElectricalNodeDto.protection constructor

const ElectricalNodeDto.protection({
  1. required String id,
  2. required String name,
  3. @Default(ElectricalState()) ElectricalState state,
  4. MeasurementState? lastMeasurement,
  5. @Default(AssetMetadata()) AssetMetadata assetMetadata,
  6. @Default(ProtectionType.circuitBreaker) ProtectionType protectionType,
  7. @Default(16) double ratingAmps,
  8. double? pdc,
  9. @Default("C") String curve,
  10. @Default(30.0) double sensitivity,
  11. @Default(2) int poles,
  12. @Default([]) List<ElectricalNodeDto> children,
  13. CatalogMetadata? catalogData,
  14. CatalogMetadata? cableCatalogData,
})

Implementation

const factory ElectricalNodeDto.protection({
  required String id,
  required String name,
  @Default(ElectricalState()) ElectricalState state,
  MeasurementState? lastMeasurement,
  @Default(AssetMetadata()) AssetMetadata assetMetadata,
  @Default(ProtectionType.circuitBreaker) ProtectionType protectionType,
  @Default(16) double ratingAmps,
  double? pdc,
  @Default("C") String curve,
  @Default(30.0) double sensitivity,
  @Default(2) int poles,
  @Default([]) List<ElectricalNodeDto> children,
  CatalogMetadata? catalogData,
  CatalogMetadata? cableCatalogData,
}) = ProtectionNodeDto;