openPickVideo method

  1. @override
Future<String?> openPickVideo()
override

Implementation

@override
Future<String?> openPickVideo() async {
  // Pick an image
  final imgPath = await ImagePicker().pickVideo(
    source: ImageSource.gallery,
  );

  if (imgPath == null) {
    return null;
  }
  return imgPath.path;
}