setState() called after dispose(): _FlutterSliderState#781b2(lifecycle state: defunct, not mounted, tickers: tracking 0 tickers) code example
Example: lifecycle state: defunct, not mounted
void setStateIfMounted(f) {
if (mounted) setState(f);
}
void setStateIfMounted(f) {
if (mounted) setState(f);
}