getVideoAsBytes static method
Picker that close after selecting 1 video and return a Uint8List of the selected video.
Implementation
static Future<Uint8List?> getVideoAsBytes() async {
final dataMap =
await _methodChannel.invokeMapMethod<String, dynamic>('pickVideo');
final data = dataMap?['data'];
if (data == null || data is! String) return null;
final imageData = base64.decode(data);
return imageData;
}