my_following_state.dart 712 B

123456789101112131415161718192021222324252627282930
  1. class MyFollowingState {
  2. final List<String>? tabsList;
  3. int? activeTabIdx;
  4. int? followerCount;
  5. int? followCount;
  6. MyFollowingState({
  7. tabsList,
  8. activeTabIdx = 0,
  9. this.followerCount = 0,
  10. this.followCount = 0,
  11. }) : tabsList = tabsList ?? [
  12. 'Follow',
  13. 'Follower',
  14. ];
  15. MyFollowingState copyWith({
  16. List<String>? tabsList,
  17. int? activeTabIdx,
  18. int? followerCount,
  19. int? followCount,
  20. }) {
  21. return MyFollowingState(
  22. tabsList: tabsList ?? this.tabsList,
  23. activeTabIdx: activeTabIdx ?? this.activeTabIdx,
  24. followerCount: followerCount ?? this.followerCount,
  25. followCount: followCount ?? this.followCount,
  26. );
  27. }
  28. }