getFromLocationName method

Implementation

Future<List<com_amap_api_services_geocoder_GeocodeAddress>?> getFromLocationName(com_amap_api_services_geocoder_GeocodeQuery var1) async {
  // print log
  if (fluttifyLogEnabled) {
    debugPrint('fluttify-dart: com.amap.api.services.geocoder.GeocodeSearch@$refId::getFromLocationName([])');
  }

  // invoke native method
  final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('com.amap.api.services.geocoder.GeocodeSearch::getFromLocationName', {"var1": var1, "__this__": this});


  // handle native call


  return (__result__ as List?)?.map((it) => AmapSearchFluttifyAndroidAs<com_amap_api_services_geocoder_GeocodeAddress>(it)).where((e) => e != null).cast<com_amap_api_services_geocoder_GeocodeAddress>().toList();
}