Unhandled Exception: setState() called after dispose(): _ReportScreenState#a3338(lifecycle state: defunct, not mounted) code example
Example: lifecycle state: defunct, not mounted
void setStateIfMounted(f) {
if (mounted) setState(f);
}
void setStateIfMounted(f) {
if (mounted) setState(f);
}