createRoute method Null safety
- 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<Object?> createRoute(BuildContext context) {
return customPageRouteFactory?.call(this) ??
DBCupertinoPageRoute(page: this);
}