calculateLineDistance_batch static method

Future<List<double?>> calculateLineDistance_batch(
  1. List<com_amap_api_location_DPoint> var0,
  2. List<com_amap_api_location_DPoint> var1
)

Implementation

static Future<List<double?>> calculateLineDistance_batch(List<com_amap_api_location_DPoint> var0, List<com_amap_api_location_DPoint> var1) async {
  assert(var0.length == var1.length);

  // invoke native method
  final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::calculateLineDistance_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__]}]);


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