deleteQueue method
Delete the entire queue. Returns true
if successful.
Implementation
Future<bool> deleteQueue() async {
bool success = true;
try {
String name = (await filename)!;
info("$runtimeType - Deleting task queue from file '$name'.");
File(name).deleteSync();
} catch (exception) {
success = false;
warning('$runtimeType - Failed to delete task queue - $exception');
}
return success;
}