matches method

bool matches(
  1. String name
)

Checks if the node matches a given name.

Implementation

bool matches(String name) {
  return name == path || path == "*" || isParameter;
}