MapPoint constructor

MapPoint({
  1. required String id,
  2. required LatLng position,
})

Creates a new MapPoint with a unique id and a geographic position.

The id should be unique across all points (e.g., using UniqueKey().toString()).

Implementation

MapPoint({
  required this.id,
  required this.position,
});