autoDispse static method
Implementation
static void autoDispse(Object lifeCycle) {
assert(Log.w('dispose: ${lifeCycle.runtimeType}'));
if (lifeCycle is NopLifeCycle) {
lifeCycle.nopDispose();
lifeCycle._listener = null;
} else if (lifeCycle is ChangeNotifier) {
lifeCycle.dispose();
}
}