onGenerateRoute static method

Route? onGenerateRoute(
  1. RouteSettings routeSettings
)

Implementation

static Route? onGenerateRoute(RouteSettings routeSettings) {
  switch (routeSettings.name) {
    case FawryScreen.id:
      return MaterialPageRoute(builder: (_) => const FawryScreen());

    default:
      return null;
  }
}