disposedBy method
Adds this process to disposeScope
.
It will be killed when disposeScope
is disposed.
Implementation
void disposedBy(DisposeScope disposeScope) {
disposeScope.addDispose(() async => kill());
}
Adds this process to disposeScope
.
It will be killed when disposeScope
is disposed.
void disposedBy(DisposeScope disposeScope) {
disposeScope.addDispose(() async => kill());
}