mirrored_repositories/GetXStudy/lib/pages/tree
import 'package:get/get.dart';

import 'package:getx_study/enum/tag_type.dart';
import 'package:getx_study/pages/tree/controller/tabs_controller.dart';
import 'package:getx_study/pages/tree/repository/tab_list_repository.dart';
import 'package:getx_study/pages/tree/repository/tabs_repository.dart';

class TabsBinding extends Bindings {
  TabsBinding(this.type);

  TagType type;

  @override
  void dependencies() {
    Get.lazyPut(
      () => TabsRepository(type),
      tag: type.toString()
    );
    Get.lazyPut(
      () => TabsController(type),
      tag: type.toString()
    );
    Get.lazyPut(
      () => TabListRepository(),
    );
  }
}
