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
I migrated my project to null safety and now I have this error when trying to run
Type argument 'T' doesn't conform to the bound 'Object' of the type variable 'T' on 'GetIt.get'.
- 'Object' is from 'dart:core'.
- 'GetIt' is from 'package:get_it/get_it.dart'
import 'package:get_it/get_it.dart';
final _injector = GetIt.instance;
T inject<T>() => _injector.get<T>(); // This is the line causing the error
I'm using the latest version 7.1.2
The text was updated successfully, but these errors were encountered:
My code breaks when I change:
to
I migrated my project to null safety and now I have this error when trying to run
I'm using the latest version 7.1.2
The text was updated successfully, but these errors were encountered: