copyWith method

LocationRestriction copyWith({
  1. Circle? circle,
  2. Rectangle? rectangle,
})

Implementation

LocationRestriction copyWith({Circle? circle, Rectangle? rectangle}) {
  return LocationRestriction(
    circle: circle ?? this.circle,
    rectangle: rectangle ?? this.rectangle,
  );
}