pagesMap property
The map holding the page names and their factories.
Implementation
@override
final Map<String, _i10.PageFactory> pagesMap = {
InventoryAcknowledgementRoute.name: (routeData) {
final args = routeData.argsAs<InventoryAcknowledgementRouteArgs>(
orElse: () => const InventoryAcknowledgementRouteArgs());
return _i10.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i1.InventoryAcknowledgementPage(
key: args.key,
appLocalizations: args.appLocalizations,
isDataRecordSuccess: args.isDataRecordSuccess,
label: args.label,
description: args.description,
descriptionTableData: args.descriptionTableData,
),
);
},
InventoryFacilitySelectionRoute.name: (routeData) {
final args = routeData.argsAs<InventoryFacilitySelectionRouteArgs>();
return _i10.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i2.InventoryFacilitySelectionPage(
key: args.key,
appLocalizations: args.appLocalizations,
facilities: args.facilities,
),
);
},
InventoryReportDetailsRoute.name: (routeData) {
final args = routeData.argsAs<InventoryReportDetailsRouteArgs>();
return _i10.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i3.InventoryReportDetailsPage(
key: args.key,
appLocalizations: args.appLocalizations,
reportType: args.reportType,
),
);
},
InventoryReportSelectionRoute.name: (routeData) {
final args = routeData.argsAs<InventoryReportSelectionRouteArgs>(
orElse: () => const InventoryReportSelectionRouteArgs());
return _i10.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i4.InventoryReportSelectionPage(
key: args.key,
appLocalizations: args.appLocalizations,
),
);
},
ManageStocksRoute.name: (routeData) {
final args = routeData.argsAs<ManageStocksRouteArgs>(
orElse: () => const ManageStocksRouteArgs());
return _i10.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i5.ManageStocksPage(
key: args.key,
appLocalizations: args.appLocalizations,
),
);
},
RecordStockWrapperRoute.name: (routeData) {
final args = routeData.argsAs<RecordStockWrapperRouteArgs>();
return _i10.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i10.WrappedRoute(
child: _i6.RecordStockWrapperPage(
key: args.key,
type: args.type,
)),
);
},
StockDetailsRoute.name: (routeData) {
final args = routeData.argsAs<StockDetailsRouteArgs>(
orElse: () => const StockDetailsRouteArgs());
return _i10.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i7.StockDetailsPage(
key: args.key,
appLocalizations: args.appLocalizations,
),
);
},
StockReconciliationRoute.name: (routeData) {
final args = routeData.argsAs<StockReconciliationRouteArgs>(
orElse: () => const StockReconciliationRouteArgs());
return _i10.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i8.StockReconciliationPage(
key: args.key,
appLocalizations: args.appLocalizations,
),
);
},
WarehouseDetailsRoute.name: (routeData) {
final args = routeData.argsAs<WarehouseDetailsRouteArgs>(
orElse: () => const WarehouseDetailsRouteArgs());
return _i10.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i9.WarehouseDetailsPage(
key: args.key,
appLocalizations: args.appLocalizations,
),
);
},
};