injectionContainerTemplate static method
Returns the template for the main injection container file.
Implementation
static String injectionContainerTemplate() {
return '''
import 'package:get_it/get_it.dart';
import 'package:internet_connection_checker/internet_connection_checker.dart';
import 'core/network/network_info.dart';
final sl = GetIt.instance;
Future<void> init() async {
//! Core
sl.registerLazySingleton<NetworkInfo>(() => NetworkInfoImpl(sl()));
//! External
sl.registerLazySingleton(() => InternetConnectionChecker.instance);
// Features will be registered here
}
''';
}