copyWith method

AddressComponent copyWith({
  1. String? longName,
  2. String? shortName,
  3. List<String>? types,
})

Implementation

AddressComponent copyWith({
  String? longName,
  String? shortName,
  List<String>? types,
}) {
  return AddressComponent(
    longName: longName ?? this.longName,
    shortName: shortName ?? this.shortName,
    types: types ?? this.types,
  );
}