injectModule method

  1. @override
Future injectModule()
override

Implementation

@override
Future injectModule() async {
  instance.registerLazySingletonAsync<GiftsRepository>(
    () async => GiftsRepositoryImpl(
      await instance.getAsync(),
    ),
  );
  instance.registerLazySingletonAsync<FindGifts>(
    () async => FindGiftsImpl(
      await instance.getAsync(),
      await instance.getAsync(),
      await instance.getAsync(),
    ),
  );
  instance.registerSingletonAsync<ChangeGiftStatus>(
    () async => ChangeGiftStatusImpl(
      await instance.getAsync(),
      await instance.getAsync(),
    ),
  );
  instance.registerSingletonAsync<GetGiftById>(
    () async => GetGiftByIdImpl(
      await instance.getAsync(),
      await instance.getAsync(),
    ),
  );
}