writeVideoToFile method

File writeVideoToFile(
  1. String path
)

Writes the video bytes to a file at the given path. Returns a File object representing the written file. Throws an IOException if the file cannot be written.

You need check isMvimg before calling this method.

Implementation

File writeVideoToFile(String path) {
  final file = File(path);
  file.writeAsBytesSync(getVideoBytes());
  return file;
}