
This widget has been unmounted, so the State no longer has a context (and should be considered defunct).
I/flutter ( 6523): Consider canceling any active work during "dispose" or using the "mounted" getter to determine if the State is still active.
이는 위젯이 dispose( )로 unmounted 됐는데 context를 사용했을 때 발생하는 에러라고 한다.
👉 해결 방법
dispose( )되면 해당 로직을 타지 않게 수정해주자!
즉, mount되지 않을 경우 실행하지 않도록 해주면 된다는 이야기.if(mounted) { ... }