geoPointFromPositionSync function

GeoPoint geoPointFromPositionSync(
  1. {@required Position position,
  2. String name = "Current position",
  3. LocationAccuracy locationAccuracy = LocationAccuracy.best,
  4. bool verbose = false}
)

Returns a GeoPoint from a given position

Implementation

GeoPoint geoPointFromPositionSync(
    {@required Position position,
    String name = "Current position",
    LocationAccuracy locationAccuracy = LocationAccuracy.best,
    bool verbose = false}) {
  if (verbose) {
    print("Creating geopoint from position $position");
  }
  return _geoPointFromPosition(
      name: name, position: position, placemark: null, verbose: verbose);
}