addModule method

  1. @override
Route addModule(
  1. String name, {
  2. required Module module,
})
override

Create a new Route by adding a RouteContext to the context.

Implementation

@override
Route addModule(String name, {required Module module}) {
  final innerModules = {module.runtimeType: module};

  return copyWith(
    name: name,
    uri: Uri.parse(name),
    innerModules: innerModules,
    module: module,
  );
}