add method

void add(
  1. RouteDefinition<AppRoute> definition
)

Implementation

void add(RouteDefinition definition) {
  final type = definition._type;
  assert(isNotSet(type), 'duplicate route: $type');
  definitions[type] = definition;
}