Getit Flutter
dependencies:
get_it: ^7.2.0
Sore Serval
dependencies:
get_it: ^7.2.0
final getIt = GetIt.instance;
void setup() {
getIt.registerSingleton<AppModel>(AppModel());
// Alternatively you could write it if you don't like global variables
GetIt.I.registerSingleton<AppModel>(AppModel());
}