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