dispose method Null safety
- dynamic instance
自动清除stream缓存(请勿调用)
Implementation
dispose(dynamic instance) {
if (instance is ComputeComputeFactory) {
_computeCache.remove(instance);
} else if (instance is WatchCollectFactory) {
_watchCache.remove(instance);
} else if (instance is StreamCollectFactory) {
_streamCache.remove(instance);
}
}