showCurrentLocation method

  1. @override
Future<void> showCurrentLocation()
override

Implementation

@override
Future<void> showCurrentLocation() async {
  try {
    await checkLocationPermission();
    await methodChannel.invokeMethod('showCurrentLocation');
  } on PlatformException catch (e) {
    throw Exception("Failed to show current location: '${e.message}'.");
  }
}