createPage<T> method
Create a Flutter page for this route.
This method combines the route's content with its configuration
to create a Flutter page that can be used in navigation.
The pageKey
is used for Flutter's page-based navigation system.
Implementation
Page<T> createPage<T>(BuildContext context, [LocalKey? pageKey]) {
final child = VyuhBinding.instance.content.buildRoute(context, routeId: id);
return routeType?.create(child, this, pageKey) ??
MaterialPage(child: child, name: path, key: pageKey);
}