deleteLocation method

  1. @override
Future<bool> deleteLocation(
  1. String name
)
override

Implementation

@override
Future<bool> deleteLocation(String name) async {
  try {
    final result = await methodChannel.invokeMethod<bool>('deleteLocation', {
      'name': name,
    });
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint('Error calling deleteLocation: ${e.message}');
    return false;
  }
}