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
The following code produces this error. Null check operator used on a null value
GetIt.I.registerLazySingleton<A>(() => A());
GetIt.I.pushNewScope(scopeName: 'scope');
if (GetIt.I.isRegistered<A>()) {
GetIt.I.unregister<A>();
}
isRegistered checks all scopes but but unregister only uses the current scope. I don't see a way to check if something is registered in the current scope to prevent this issue.
The following code produces this error.
Null check operator used on a null value
isRegistered checks all scopes but but unregister only uses the current scope. I don't see a way to check if something is registered in the current scope to prevent this issue.
Seems related to #189
The text was updated successfully, but these errors were encountered: