destroyLocation static method

Future<bool> destroyLocation(
  1. String uuid
)

Destory a single location by Location.uuid.

Example

try {
  await BackgroundGeolocation.destroyLocation(location.uuid);
} catch(error) {
  print("[destroyLocation] failed: $error");
}

Implementation

static Future<bool> destroyLocation(String uuid) async {
  return (await _methodChannel.invokeMethod<bool>('destroyLocation', uuid))
      as FutureOr<bool>;
}