downVideoToDCIM method

Future<void> downVideoToDCIM(
  1. String fileName,
  2. String url,
  3. VoidCallback onDone, {
  4. VoidCallback? error,
})

Implementation

Future<void> downVideoToDCIM(String fileName, String url, VoidCallback onDone,
    {VoidCallback? error}) async {
  try {
    _downLoadVideoFileToDCIM(
      fileName,
      url,
    );
  } catch (msg) {
    error?.call();
    print(msg);
  }
}