createRouter method

  1. @protected
GoRouter createRouter(
  1. List<ModuleRoute> routes, {
  2. String? initialLocation,
})

Implementation

@protected
GoRouter createRouter(List<ModuleRoute> routes, {String? initialLocation}) {
  return GoRouter(
    routes: routes.map((e) => e.toGoRoute()).toList(),
    initialLocation: initialLocation,
  );
}