cancel method

Future<void> cancel(
  1. int id
)

Safely cancel a recoverable region

Implementation

Future<void> cancel(int id) async {
  _downloadsOngoing.remove(id);
  await (await getRecoverableRegion(id))?.file.delete();
}