setCancelDownload method

Future<void> setCancelDownload()

Implementation

Future<void> setCancelDownload() async {
  try {
    await methodChannel.invokeMethod(Constant.METHOD_CANCEL_DOWNLOAD);
    isDownloadStarted = false;
  } on PlatformException catch (_) {}
}