MapPoint class

Represents a point on the map with a unique identifier.

This class is used to store location data (LatLng) along with a unique id, which makes it easier to track, update, or remove specific markers or shapes on the map.

Used primarily in map interactions such as:

  • Drawing boundaries or polylines
  • Creating draggable markers
  • Managing undo/redo operations
  • Identifying midpoints between other points

Constructors

MapPoint({required String id, required LatLng position})
Creates a new MapPoint with a unique id and a geographic position.

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for the point, used for tracking and manipulation.
final
position ↔ LatLng
Geographic position of the point as a LatLng (latitude & longitude).
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited