create_batch__ method

Future<List<AMapPOIConfig>> create_batch__(
  1. int length,
  2. {bool init = true}
)

Implementation

static Future<List<AMapPOIConfig>> create_batch__(int length, { bool init = true /* ios only */ }) async {
  if (false) {
    return Future.error('all args must have same length!');
  }
  final List resultBatch = await MethodChannel('me.yohom/amap_core_fluttify', StandardMethodCodec(FluttifyMessageCodec('amap_core_fluttify'))).invokeMethod('ObjectFactory::create_batchAMapPOIConfig', {'length': length, 'init': init});

  final List<AMapPOIConfig> typedResult = resultBatch.map((result) => AMapPOIConfig()..refId = result..tag__ = 'amap_core_fluttify').toList();
  return typedResult;
}