12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import 'package:cs_resources/generated/assets.dart';
- class RepairVmState {
- List<Map<String, dynamic>>? topSectionsData;
- int currentPageViewIdx = 0;
- dynamic? tabsRouter;
- RepairVmState({
- List<Map<String, dynamic>>? 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<Map<String, dynamic>>? topSectionsData,
- int? currentPageViewIdx,
- dynamic? tabsRouter,
- }) {
- return RepairVmState(
- topSectionsData: topSectionsData ?? this.topSectionsData,
- currentPageViewIdx: currentPageViewIdx ?? this.currentPageViewIdx,
- tabsRouter: tabsRouter ?? this.tabsRouter,
- );
- }
- }
|