getLastKnownLocation method

  1. @override
Future<LocationInfo?> getLastKnownLocation()
override

Implementation

@override
Future<LocationInfo?> getLastKnownLocation() async {
  if (!Platform.isAndroid) return null;
  return LocationInfo.fromJson(
      await channelMethod.invokeMethod(methodGetLastKnownLocation));
}