dispose method
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Implementation
@override
void dispose() {
_cancellationTokenSource.cancel();
_watcher = null;
}
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
@override
void dispose() {
_cancellationTokenSource.cancel();
_watcher = null;
}