copyWith method

EVChargeOptions copyWith({
  1. int? connectorCount,
  2. List<ConnectorAggregation>? connectorAggregation,
})

Implementation

EVChargeOptions copyWith({
  int? connectorCount,
  List<ConnectorAggregation>? connectorAggregation,
}) {
  return EVChargeOptions(
    connectorCount: connectorCount ?? this.connectorCount,
    connectorAggregation:
        ((connectorAggregation?.isNotEmpty ?? false)
            ? connectorAggregation
            : null) ??
        this.connectorAggregation,
  );
}