getGeoPoint method

GeoPoint? getGeoPoint(
  1. String key
)

Reads a key value of GeoPoint type from Map.

If value is NULL or not GeoPoint type return default GeoPoint .

Implementation

GeoPoint? getGeoPoint(String key) {
  if (containsKey(key) && this[key] is GeoPoint) {
    return this[key];
  }
  errorLogsNS("Map.getGeoPoint[$key] has incorrect data : ${this[key]}");
  return defaultGeoPoint;
}