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,
    );
  }
}