init1 function

Future<void> init1()

Implementation

Future<void> init1() async {
  //SharedPref
  //final sharedPreferences = await SharedPreferences.getInstance();
 // Get.lazyPut(() => sharedPreferences, fenix: true);

  //ApiClient
  Get.lazyPut(() => Dio(), fenix: true);
  //ApiClient
  Get.lazyPut(() => R3ApiClient(dio1: Get.find()), fenix: true);

  //Repository

  Get.lazyPut(
      () => CompanyLoginRepo(
          apiClient: Get.find()),
      fenix: true);


  //Controllers
  Get.lazyPut(() => CollectHandlerController(authRepo: Get.find()),
      fenix: true);
  Get.lazyPut(() => CompanyLoginController(companyRepo: Get.find()), fenix: true);

}