addGeotagWithExpectedLocation static method Null safety
- JSONObject data,
- Location expectedLocation
Adds a new geotag with expected location.
Accepts data
- Geotag data JSON.
Accepts expectedLocation
- Expected location.
Returns current location with deviation from expected location if success
or LocationError if failure.
Implementation
static Future<Result<LocationWithDeviation, LocationError>>
addGeotagWithExpectedLocation(
JSONObject data, Location expectedLocation) {
return _invokeSdkMethod<Map<Object?, Object?>>(
SdkMethod.addGeotag, serializeGeotagData(data, expectedLocation))
.then((value) {
return deserializeLocationWithDeviationResult(value);
});
}