Path constructor

const Path([
  1. String? name
])

Reads the {name} segment, defaulting to the parameter name.

Implementation

const Path([this.name]);