copyWith method

Area copyWith({
  1. String? name,
  2. String? placeId,
  3. LocalizedText? displayName,
  4. Containment? containment,
})

Implementation

Area copyWith({
  String? name,
  String? placeId,
  LocalizedText? displayName,
  Containment? containment,
}) {
  return Area(
    name: name ?? this.name,
    placeId: placeId ?? this.placeId,
    displayName: displayName ?? this.displayName,
    containment: containment ?? this.containment,
  );
}