getMultiVideosAsBytes static method
Picker that allows multi-video selection and return a Uint8List list of the selected videos.
Implementation
static Future<List<Uint8List>?> getMultiVideosAsBytes() async {
final videos = await ImagePickerWeb()._pickMultiFiles('video');
if (videos == null) return null;
final files = <Uint8List>[];
for (final video in videos) {
files.add(await video.asBytes());
}
return files.isEmpty ? null : files;
}