containsParam method

bool containsParam(
  1. String key
)

Checks if there is a placeholder param with the given key in the pattern.

Implementation

bool containsParam(String key) {
  return _segments
      .any((element) => element is _PLSegment && element.key == key);
}