addGeotagWithExpectedLocation method Null safety

Future<Result<LocationWithDeviation, LocationError>> addGeotagWithExpectedLocation(
  1. JSONObject data,
  2. Location expectedLocation
)

Adds a new geotag with expected location

Implementation

Future<Result<LocationWithDeviation, LocationError>>
    addGeotagWithExpectedLocation(
        JSONObject data, Location expectedLocation) {
  return _invokeSdkMethod(
          SdkMethod.addGeotag, serializeGeotagData(data, expectedLocation))
      .then((value) {
    return deserializeLocationWithDeviationResult(value);
  });
}