copyWith method

  1. @override
AgentData copyWith({
  1. AgentSign? agentSign,
  2. String? operationName,
  3. List<String>? phones,
  4. List<String>? receiverPhones,
  5. List<String>? transferPhones,
  6. String? operatorName,
  7. String? operatorAddress,
  8. String? operatorInn,
})
override

Создает экземпляр с заданными параметрами

Implementation

@override
AgentData copyWith({
  AgentSign? agentSign,
  String? operationName,
  List<String>? phones,
  List<String>? receiverPhones,
  List<String>? transferPhones,
  String? operatorName,
  String? operatorAddress,
  String? operatorInn,
}) {
  return AgentData(
    agentSign: agentSign ?? this.agentSign,
    operationName: operationName ?? this.operationName,
    phones: phones ?? this.phones,
    receiverPhones: receiverPhones ?? this.receiverPhones,
    transferPhones: transferPhones ?? this.transferPhones,
    operatorName: operatorName ?? this.operatorName,
    operatorAddress: operatorAddress ?? this.operatorAddress,
    operatorInn: operatorInn ?? this.operatorInn,
  );
}