class MyFollowingState { List? tabsList; int? currentPageViewIdx = 0; int? activeTabIdx = 0; int? followerCount; int? followCount; MyFollowingState({ tabsList, activeTabIdx = 0, currentPageViewIdx = 0, this.followerCount = 0, this.followCount = 0, }) : tabsList = tabsList ?? [ 'Follow', 'Follower', ]; MyFollowingState copyWith({ List? tabsList, int? currentPageViewIdx, int? activeTabIdx, int? followerCount, int? followCount, }) { return MyFollowingState( tabsList: tabsList ?? this.tabsList, currentPageViewIdx: currentPageViewIdx ?? this.currentPageViewIdx, activeTabIdx: activeTabIdx ?? this.activeTabIdx, followerCount: followerCount ?? this.followerCount, followCount: followCount ?? this.followCount, ); } }