dynamic as(String name)

Assigns a name to this Route.

Source

as(String name) {
  this.name = name;
  return this;
}