class NewsState { int? activeTabIndex =0; int? curPage =0; int? pageSize =10; int? filterCount =0; List? tabsList = ['News', 'Following', 'For You']; List>? list = []; NewsState({ this.activeTabIndex, this.curPage, this.pageSize, this.filterCount, this.tabsList, this.list, }); NewsState copyWith({ int? activeTabIndex, int? curPage, int? pageSize, int? filterCount, List? tabsList, List>? list, }) { return NewsState( activeTabIndex: activeTabIndex ?? this.activeTabIndex, curPage: curPage ?? this.curPage, pageSize: pageSize ?? this.pageSize, filterCount: filterCount ?? this.filterCount, tabsList: tabsList ?? this.tabsList, list: list ?? this.list, ); } }