Freezed when method isn't recognized — help needed
#1247
Unanswered
Mohamad-Ammis
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
What to Check
Does auth_cubit.freezed.dart exist? Does it include generated classes like _Initial, _RegisterLoading, _RegisterFailure, _RegisterSuccess?
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey folks 👋
I'm trying to use
freezedfor the first time to handle myCubitstates, but I can't access the generated methods likewhen,maybeWhen, etc. The error I get is:✅ What I did
📄 My
AuthStateclass📄 My `AuthCubit class
😢 where i try to use when
what i've tried
remove all dependencies and add them again
delete pubspec.lock and run flutter clean ,flutter pub get then run build runner again
Ran flutter pub run build_runner build --delete-conflicting-outputs
add this to analysis_options.yaml
Tried hot restart and full rebuild
Beta Was this translation helpful? Give feedback.
All reactions