create_batch static method

Future<List<android_graphics_Bitmap>?> create_batch(
  1. List<Uint8List> bitmapBytesBatch
)

Implementation

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