locationWithLatitude_longitude_batch static method

Future<List<AMapLocationPoint?>> locationWithLatitude_longitude_batch(
  1. List<double> lat,
  2. List<double> lon
)

Implementation

static Future<List<AMapLocationPoint?>> locationWithLatitude_longitude_batch(List<double> lat, List<double> lon) async {
  assert(lat.length == lon.length);

  // invoke native method
  final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('AMapLocationPoint::locationWithLatitude_longitude_batch', [for (int __i__ = 0; __i__ < lat.length; __i__++) {"lat": lat[__i__], "lon": lon[__i__]}]);


  return (resultBatch as List).map((__result__) => AmapLocationFluttifyIOSAs<AMapLocationPoint>(__result__)).cast<AMapLocationPoint?>().toList();
}