We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using a dart native Enum as return type in module, the generator is throwing error saying my enum "is not a class element"
pubspec.yaml:
dependencies: flutter: sdk: flutter flutter_localizations: sdk: flutter flutter_mobx: ^2.2.1+1 get_it: ^7.7.0 injectable: ^2.4.2 mobx: ^2.3.3+2 mobx_codegen: ^2.6.1 package_info_plus: ^8.0.0 provider: ^6.1.2 dev_dependencies: flutter_test: sdk: flutter flutter_lints: ^3.0.0 injectable_generator: ^2.6.1 build_runner: ^2.4.10
Module:
Enum PlatformType { android, ios } @module abstract class AppModule { @Named("currentPlatform") PlatformType get currentPlatform { if (Platform.isAndroid) { return PlatformType.android; } else { return PlatformType.ios; } } }
The text was updated successfully, but these errors were encountered:
same
Sorry, something went wrong.
No branches or pull requests
I am using a dart native Enum as return type in module, the generator is throwing error saying my enum "is not a class element"
pubspec.yaml:
Module:
The text was updated successfully, but these errors were encountered: