RouteDef constructor Null safety

RouteDef(
  1. String template,
  2. {Type? page,
  3. List<Type>? guards,
  4. RouterBase? generator}
)

Implementation

RouteDef(
  this.template, {
  this.page,
  this.guards,
  this.generator,
}) : pattern = _buildPathPattern(template);