generator method Null safety

Route generator(
  1. RouteSettings settings
)

Implementation

Route<dynamic> generator(RouteSettings settings) {
  return PageRedirect(settings: settings, unknownRoute: unknownRoute).page();
}