setCoordinates method

void setCoordinates({
  1. required num latitude,
  2. required num longitude,
})

Update both coordinates for the point

Implementation

void setCoordinates({required num latitude, required num longitude}) {
  longitude = longitude;
  latitude = latitude;
}