12345678910111213141516171819202122232425262728293031323334 |
- class MyFollowingState {
- List<String>? 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<String>? 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,
- );
- }
- }
|