You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to override the choiceBuilder method and when I call the onTap function to be able to close the modal, it's returning this error when invoking the "closeModal()" and "onModalClose(true)" methods.
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: A S2SingleSelection<String?> was used after being disposed.
Once you have called dispose() on a S2SingleSelection<String?>, it can no longer be used.
#0 ChangeNotifier.debugAssertNotDisposed.
change_notifier.dart:157 #1 ChangeNotifier.debugAssertNotDisposed
change_notifier.dart:164 #2 ChangeNotifier.dispose
change_notifier.dart:323 #3 S2State.onModalClose
s2_state.dart:58 #4 S2SingleState.onModalClose
s2_single_state.dart:32 #5 S2State.showModal
s2_state.dart:797
I'm trying to override the choiceBuilder method and when I call the onTap function to be able to close the modal, it's returning this error when invoking the "closeModal()" and "onModalClose(true)" methods.
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: A S2SingleSelection<String?> was used after being disposed.
Once you have called dispose() on a S2SingleSelection<String?>, it can no longer be used.
#0 ChangeNotifier.debugAssertNotDisposed.
change_notifier.dart:157
#1 ChangeNotifier.debugAssertNotDisposed
change_notifier.dart:164
#2 ChangeNotifier.dispose
change_notifier.dart:323
#3 S2State.onModalClose
s2_state.dart:58
#4 S2SingleState.onModalClose
s2_single_state.dart:32
#5 S2State.showModal
s2_state.dart:797
My Code:
The text was updated successfully, but these errors were encountered: