create_batch method

Future<List<UIImage>> create_batch(
  1. List<Uint8List> bitmapBytesBatch
)

Implementation

static Future<List<UIImage>> create_batch(
  List<Uint8List> bitmapBytesBatch,
) async {
  final resultBatch = await kMethodChannel.invokeListMethod<Ref>(
    'UIImage::createUIImage_batch',
    [
      for (final bitmapBytes in bitmapBytesBatch) {'bitmapBytes': bitmapBytes}
    ],
  );
  return resultBatch.map((it) => UIImage()..refId = it.refId).toList();
}