downImageToDCIM method

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

Implementation

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