-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
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
Generated code not support null safety #147
Comments
@Milad-Akarie Please add null safety prerelease version like in other packages 😃 |
Any movement here? |
My current project is using null safety. Although not a big deal in just adding 2 "?" everytime I run build runner. i.e. Future<GetIt> $initGetIt(
GetIt get, {
String? environment, // should be String? environment
EnvironmentFilter? environmentFilter, // EnvironmentFilter? environmentFilter
}) async {
... and everything runs smoothly. @Milad-Akarie can't we just add these 2 "?" in nullsafety version?. Because I have tested it on both android and web. And everything runs smoothly. |
@heman4t I've already started refactoring the code to support null safety, this might take some time though. |
@Milad-Akarie is there an eta on when this will be done? |
@heman4t @essarn the generated code can now include null safety suffixes in version @InjectableInit(
usesNullSafety: true,
) this will only add (?) suffix to (environment & environmentFilter) |
That's cool. Working perfectly. |
the generated code
The text was updated successfully, but these errors were encountered: