copyWith method

ChargingStation copyWith({
  1. Aggregate? aggregate,
  2. List<Connector>? connectors,
})

Implementation

ChargingStation copyWith({
  Aggregate? aggregate,
  List<Connector>? connectors
}) {
  return ChargingStation(
    aggregate: aggregate ?? this.aggregate,
    connectors: connectors ?? this.connectors
  );
}