loadVideo method

Future<LocalMedia> loadVideo()

Get video from camera or library by path.

path: File path. source: Media source. directoryType: Directory destination to save.

Implementation

Future<LocalMedia> loadVideo() async {
  assert(path.isNotEmpty, "The path is invalid.");
  return value = LocalMedia(file: File(path), assetType: AssetType.image);
}