getCurrentLocation method

Implementation

Future<com_amap_api_location_AMapLocation?> getCurrentLocation() async {
  // print log
  if (fluttifyLogEnabled) {
    debugPrint('fluttify-dart: com.amap.api.fence.GeoFence@$refId::getCurrentLocation([])');
  }

  // invoke native method
  final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFence::getCurrentLocation', {"__this__": this});


  // handle native call


  return AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocation>(__result__);
}