When I use the future in StateNotifier and the state is changed with the response this future, but the response arrives after the dispose of the Statenotifier.
Do I have to verify mounted before changed the state always?
Because I'm getting:
Tried to use $runtimeType after `dispose` was called. Consider checking `mounted`.
When I use the future in
StateNotifier
and thestate
is changed with the response thisfuture
, but the response arrives after thedispose
of theStatenotifier
.Do I have to verify
mounted
before changed thestate
always?Because I'm getting:
Tried to use $runtimeType after `dispose` was called. Consider checking `mounted`.