getLocation method
Implementation
@override
Future<Map<String, dynamic>> getLocation() async {
try {
final result = await methodChannel.invokeMethod('getLocation');
return Map<String, dynamic>.from(result);
} on PlatformException catch (e) {
throw 'Failed to get location: ${e.message}';
}
}