Marker.fromRectangle constructor

Marker.fromRectangle(
  1. Coordinates topLeft,
  2. Coordinates bottomRight
)

Create a rectangular marker defined by two corner coordinates.

Parameters

  • topLeft: Coordinates of the rectangle top-left corner.
  • bottomRight: Coordinates of the rectangle bottom-right corner.

Returns

  • A new Marker representing the rectangular area.

Implementation

factory Marker.fromRectangle(
  final Coordinates topLeft,
  final Coordinates bottomRight,
) {
  return Marker._createFromRectangle(topLeft, bottomRight);
}