E/flutter (13216): [ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: setState() called after dispose(): FormFieldState<dynamic>#03479(lifecycle state: defunct, not mounted)
E/flutter (13216): This error happens if you call setState() on a State object for a widget that no longer appears in the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error can occur when code calls setState() from a timer or an animation callback.
E/flutter (13216): The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callback. Another solution is to check the "mounted" property of this object before calling setState() to ensure the object is still in the tree.
E/flutter (13216): This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().
E/flutter (13216): #0 State.setState.<anonymous closure> (package:flutter/src/widgets/framework.dart:1073:9)
E/flutter (13216): #1 State.setState (package:flutter/src/widgets/framework.dart:1108:6)
E/flutter (13216): #2 FormFieldState.didChange (package:flutter/src/widgets/form.dart:409:5)
E/flutter (13216): #3 new MultiSelectFormField.<anonymous closure>.<anonymous closure> (package:multiselect_formfield/multiselect_formfield.dart:120:25)
E/flutter (13216): <asynchronous suspension>
E/flutter (13216):
Have anyone the same problem or can help me please?
The two widgets:
The error message is
Have anyone the same problem or can help me please?