Di Injectable
configure all dependencies in your app with injectable.import 'package:get_it/get_it.dart';
import 'package:injectable/injectable.dart';
import 'app_injectable.config.dart';
/// manage dependencies
@InjectableInit()
Future<void> configureAppDependencies({Environment? environment}) async {
await GetIt.instance.init(environment: environment?.name);
}
import 'package:injectable/injectable.dart';
void main() async {
const environment = Environment(Environment.dev);
await configureAppDependencies(environment: environment);
runApp(const MyApp());
}