onGenerateRoute static method
Implementation
static Route? onGenerateRoute(RouteSettings routeSettings) {
switch (routeSettings.name) {
case PaymentMethodsScreen.id:
return MaterialPageRoute(builder: (_) => const PaymentMethodsScreen());
default:
return null;
}
}