We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
When I create a unit test for a class that needs a context and is also injected by get_it, I got this error.
test/main_test.dart 13:71 main.<fn>.<fn> package:get_it/get_it_impl.dart 178:41 _ServiceFactory.getObject package:get_it/get_it_impl.dart 434:34 _GetItImplementation.get package:get_it/get_it_impl.dart 455:12 _GetItImplementation.call test/main_test.dart 14:23 main.<fn> Null check operator used on a null value
Here's the example project for the above error: https://github.com/rrifafauzikomara/flutter_sdk_example/blob/main/test/main_test.dart
The text was updated successfully, but these errors were encountered:
Will have a closer look tomorrow. I checked the place of the exception and it's almost impossible, but I have to clone your project and see it myself
Sorry, something went wrong.
Actually the exception doesn't come from get_it.
your currentContext is null in your factory function. if you enable break in all exceptions you would have found it
currentContext
No branches or pull requests
When I create a unit test for a class that needs a context and is also injected by get_it, I got this error.
Here's the example project for the above error: https://github.com/rrifafauzikomara/flutter_sdk_example/blob/main/test/main_test.dart
The text was updated successfully, but these errors were encountered: