getVideo static method
Implementation
static Future<VPlatformFile?> getVideo() async {
isPicking = true;
final FilePickerResult? pickedFile = await FilePicker.platform.pickFiles(
type: FileType.video,
);
isPicking = false;
if (pickedFile == null) return null;
final e = pickedFile.files.first;
if (e.bytes != null) {
return VPlatformFile.fromBytes(
name: e.name,
bytes: e.bytes!,
);
}
return VPlatformFile.fromPath(fileLocalPath: e.path!);
}