createRoute method

  1. @override
Route createRoute(
  1. BuildContext context
)
override

Creates the Route that corresponds to this page.

The created Route must have its Route.settings property set to this Page.

Implementation

@override
Route createRoute(BuildContext context) {
  return MaterialPageRoute(
    settings: this,
    builder: (BuildContext context) {
      return const UnknownPageRender();
    },
  );
}