disposeIfNotUsed method
Dispose the state if it has no listener
Implementation
@override
void disposeIfNotUsed() {
if (autoDisposeWhenNotUsed && !hasObservers) {
dispose();
}
}
Dispose the state if it has no listener
@override
void disposeIfNotUsed() {
if (autoDisposeWhenNotUsed && !hasObservers) {
dispose();
}
}