home_index_state.dart 978 B

12345678910111213141516171819202122232425262728293031323334
  1. part of 'home_index_cubit.dart';
  2. class HomeIndexState {
  3. TextEditingController? searchController;
  4. late TabController tabController;
  5. late SwiperController swiperController;
  6. late List<RtcRoomCategories> tabList;
  7. late List<BannerList> bannerList;
  8. late List<DiamondList> diamondItesm;
  9. late List<DustList> dustItems;
  10. HomeIndexState init(TickerProvider vsyncV) {
  11. return HomeIndexState()
  12. ..searchController = TextEditingController()
  13. ..swiperController = new SwiperController()
  14. ..tabList = []
  15. ..bannerList = []
  16. ..tabController = TabController(vsync: vsyncV, length: 0)
  17. ..diamondItesm = []
  18. ..dustItems = [];
  19. }
  20. HomeIndexState clone() {
  21. return HomeIndexState()
  22. ..searchController = searchController
  23. ..swiperController = swiperController
  24. ..tabList = tabList
  25. ..bannerList = bannerList
  26. ..tabController = tabController
  27. ..diamondItesm = diamondItesm
  28. ..dustItems = dustItems;
  29. }
  30. }