Marker.fromRectangle constructor
- Coordinates topLeft,
- 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);
}