dispose method
dynamic
dispose()
Implementation
dispose() {
for (int token in _task.keys) {
TaskDownload dw = _task[token]!;
dw.rcvPort.close();
dw.statusDownload.close();
dw.root.kill(priority: Isolate.immediate);
}
for (StreamSubscription sub in _isolateSub) {
sub.cancel();
}
_isolateSub.clear();
_task.clear();
_init = false;
}