deleteLocation method
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;
}
}