copyWith method

AddressStreet copyWith({
  1. String? street,
  2. String? number,
  3. Optional<String?>? fiasCode,
})

Implementation

AddressStreet copyWith({
  String? street,
  String? number,
  Optional<String?>? fiasCode
}) {
  return AddressStreet(
    street: street ?? this.street,
    number: number ?? this.number,
    fiasCode: fiasCode != null ? fiasCode.value : this.fiasCode
  );
}