saveLocation method

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

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