copyWith method
AgentData
copyWith({
- AgentSign? agentSign,
- String? operationName,
- List<
String> ? phones, - List<
String> ? receiverPhones, - List<
String> ? transferPhones, - String? operatorName,
- String? operatorAddress,
- 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,
);
}