pagesMap property
The map holding the page names and their factories.
Implementation
@override
final Map<String, _i5.PageFactory> pagesMap = {
AttendanceAcknowledgementRoute.name: (routeData) {
final args = routeData.argsAs<AttendanceAcknowledgementRouteArgs>();
return _i5.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i1.AttendanceAcknowledgementPage(
key: args.key,
appLocalizations: args.appLocalizations,
label: args.label,
subLabel: args.subLabel,
description: args.description,
descriptionWidget: args.descriptionWidget,
action: args.action,
actionLabel: args.actionLabel,
icon: args.icon,
color: args.color,
enableBackToSearch: args.enableBackToSearch,
secondaryAction: args.secondaryAction,
secondaryLabel: args.secondaryLabel,
),
);
},
AttendanceDateSessionSelectionRoute.name: (routeData) {
final args = routeData.argsAs<AttendanceDateSessionSelectionRouteArgs>();
return _i5.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i2.AttendanceDateSessionSelectionPage(
registers: args.registers,
registerID: args.registerID,
key: args.key,
appLocalizations: args.appLocalizations,
),
);
},
ManageAttendanceRoute.name: (routeData) {
return _i5.AutoRoutePage<dynamic>(
routeData: routeData,
child: const _i3.ManageAttendancePage(),
);
},
MarkAttendanceRoute.name: (routeData) {
final args = routeData.argsAs<MarkAttendanceRouteArgs>();
return _i5.AutoRoutePage<dynamic>(
routeData: routeData,
child: _i4.MarkAttendancePage(
exitTime: args.exitTime,
entryTime: args.entryTime,
dateTime: args.dateTime,
attendees: args.attendees,
registerId: args.registerId,
tenantId: args.tenantId,
session: args.session,
key: args.key,
appLocalizations: args.appLocalizations,
),
);
},
};