copyWith method

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

Implementation

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