uploadMultiImage static method

Future<List<String>> uploadMultiImage(
  1. dynamic pickedFiles
)

Implementation

static Future<List<String>> uploadMultiImage(pickedFiles) async {
  if (pickedFiles != null && pickedFiles.isNotEmpty) {
    List<String> images = [];
    for (var file in pickedFiles) {
      var img = await OssHelper.upload(file: File(file.path));
      images.add(img);
    }
    return images;
  }
  return [];
}