ModularRoute constructor

ModularRoute(
  1. String name, {
  2. String schema = '',
  3. String parent = '',
  4. Module? module,
  5. required Uri uri,
  6. Map<Type, Module> innerModules = const {},
  7. List<ModularRoute> children = const [],
  8. List<Middleware> middlewares = const [],
})

Implementation

ModularRoute(
  this.name, {
  this.schema = '',
  this.parent = '',
  this.module,
  required this.uri,
  this.innerModules = const {},
  this.children = const [],
  this.middlewares = const [],
}) {
  key = ModularKey(name: name, schema: schema);
}