library profile_di; import 'package:get_it/get_it.dart'; import 'package:dio/dio.dart'; import '../data/repositories/profile_repository.dart'; import '../presentation/bloc/profile_bloc.dart'; class ProfileDI { static final GetIt _getIt = GetIt.instance; static void register() { _getIt.registerLazySingleton( () => ProfileRepositoryImpl(_getIt()), ); _getIt.registerFactory( () => ProfileBloc(_getIt()), ); } static void unregister() { if (_getIt.isRegistered()) _getIt.unregister(); if (_getIt.isRegistered()) _getIt.unregister(); } }