copy property

RectangleGeographicArea get copy

Creates a deep copy of this rectangle with identical coordinates.

Generates a new RectangleGeographicArea instance with the same top-left and bottom-right coordinates as this rectangle. The new instance is completely independent and modifications to it will not affect the original instance.

Returns

Implementation

RectangleGeographicArea get copy {
  return RectangleGeographicArea(
    topLeft: topLeft.copy,
    bottomRight: bottomRight.copy,
  );
}