copyWith method

NmTaxRadarState copyWith({
  1. List<NmCounterparty>? counterparties,
  2. String? selectedCounterpartyId,
  3. double? sweepAngle,
  4. bool? isScanning,
  5. Set<NmCounterpartyType>? filterTypes,
})

Copy with.

Implementation

NmTaxRadarState copyWith({
  List<NmCounterparty>? counterparties,
  String? selectedCounterpartyId,
  double? sweepAngle,
  bool? isScanning,
  Set<NmCounterpartyType>? filterTypes,
}) {
  return NmTaxRadarState(
    counterparties: counterparties ?? this.counterparties,
    selectedCounterpartyId: selectedCounterpartyId ?? this.selectedCounterpartyId,
    sweepAngle: sweepAngle ?? this.sweepAngle,
    isScanning: isScanning ?? this.isScanning,
    filterTypes: filterTypes ?? this.filterTypes,
  );
}