copyWith method

Aggregate copyWith({
  1. int? connectorsFree,
  2. int? connectorsTotal,
  3. bool? isActive,
  4. bool? isBusy,
  5. int? power,
})

Implementation

Aggregate copyWith({
  int? connectorsFree,
  int? connectorsTotal,
  bool? isActive,
  bool? isBusy,
  int? power
}) {
  return Aggregate(
    connectorsFree: connectorsFree ?? this.connectorsFree,
    connectorsTotal: connectorsTotal ?? this.connectorsTotal,
    isActive: isActive ?? this.isActive,
    isBusy: isBusy ?? this.isBusy,
    power: power ?? this.power
  );
}