123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- class ChooseVisitTimeTitleState {
- int? currentSelectIndex;
- List<DayInfoItem>? dayInfoList;
- ChooseVisitTimeTitleState({
- this.currentSelectIndex = 0,
- dayInfoList,
- }): dayInfoList = dayInfoList ?? [
- DayInfoItem(day: 'Tody', date: '2022-01-01', isSelected: true, isIntrady: true,),
- DayInfoItem(day: 'Tomorrow', date: '2022-01-02', isSelected: false, isIntrady: false,),
- DayInfoItem(day: 'Wendnesday', date: '2022-01-03', isSelected: false, isIntrady: false,),
- DayInfoItem(day: 'Thursdy', date: '2022-01-04', isSelected: false, isIntrady: false,),
- DayInfoItem(day: 'Friday', date: '2022-01-05', isSelected: false, isIntrady: false,),
- DayInfoItem(day: 'Saturday', date: '2022-01-06', isSelected: false, isIntrady: false,),
- DayInfoItem(day: 'Sunday', date: '2022-01-07', isSelected: false, isIntrady: false,),
- ];
- ChooseVisitTimeTitleState copyWith({
- int? currentSelectIndex,
- List<DayInfoItem>? dayInfoList,
- }) {
- return ChooseVisitTimeTitleState(
- currentSelectIndex: currentSelectIndex ?? this.currentSelectIndex,
- dayInfoList: dayInfoList ?? this.dayInfoList,
- );
- }
- }
- class DayInfoItem {
- int? id;
- String? day;
- String? date;
- bool isSelected;
- bool isIntrady;
- DayInfoItem({
- this.id = 0,
- this.day,
- this.date,
- this.isSelected = false,
- this.isIntrady = false,
- });
- }
|