dvOnGenerateRoute function
Route<Object?> ?
dvOnGenerateRoute(
- RouteSettings settings,
- List<
RouteBase> routes, { - String at = '/',
For Navigator 1.0: a route for settings when it names a Dartvel page
under at, else null for the host's own onGenerateRoute to answer.
Implementation
Route<Object?>? dvOnGenerateRoute(
RouteSettings settings,
List<RouteBase> routes, {
String at = '/',
}) {
final String? location = dvHostedLocation(
settings.name ?? '/',
routes,
at: at,
);
if (location == null) return null;
return MaterialPageRoute<Object?>(
settings: settings,
builder: (BuildContext context) =>
DVHostedPage(location: location, routes: routes, at: at),
);
}