import 'package:cs_resources/generated/assets.dart'; class RepairVmState { List>? topSectionsData; int currentPageViewIdx = 0; dynamic? tabsRouter; RepairVmState({ List>? topSectionsData, required this.currentPageViewIdx, this.tabsRouter, }) : topSectionsData = topSectionsData?? [ { "title": "Service", "code": "service", "icon": Assets.serviceServiceType, }, { "title": "In Progress", "code": "inProgress", "icon": Assets.serviceInProgress, }, { "title": "History", "code": "history", "icon": Assets.serviceHistory, }, ]; RepairVmState copyWith({ List>? topSectionsData, int? currentPageViewIdx, dynamic? tabsRouter, }) { return RepairVmState( topSectionsData: topSectionsData ?? this.topSectionsData, currentPageViewIdx: currentPageViewIdx ?? this.currentPageViewIdx, tabsRouter: tabsRouter ?? this.tabsRouter, ); } }