shareMultipleImages static method

Future<void> shareMultipleImages(
  1. List<Uint8List?> images,
  2. String? text, {
  3. String? title,
  4. String? name,
})

Implementation

static Future<void> shareMultipleImages(
  List<Uint8List?> images,
  String? text, {
  String? title,
  String? name,
}) async {
  Map<String, List<int>> files = {};

  for (var i = 0; i < images.length; i++) {
    Uint8List data = images[i]!;
    files['$i.png'] = data;
  }

  await ModernFormShareHelper.files(
    title ?? '',
    files,
    name ?? 'image/png',
    text: text ?? "",
  );
}