newsfeed_state.dart 517 B

1234567891011121314151617181920212223
  1. import 'package:cs_resources/generated/assets.dart';
  2. import 'package:flutter/material.dart';
  3. import 'package:shared/utils/color_utils.dart';
  4. class NewsfeedState {
  5. int? activeIndex = 0;
  6. List tabsList = [];
  7. NewsfeedState({
  8. this.activeIndex,
  9. required this.tabsList,
  10. });
  11. NewsfeedState copyWith({
  12. int? activeIndex,
  13. List? tabsList,
  14. }) {
  15. return NewsfeedState(
  16. activeIndex: activeIndex ?? this.activeIndex,
  17. tabsList: tabsList ?? this.tabsList,
  18. );
  19. }
  20. }