matches method

bool matches(
  1. String name
)

Implementation

bool matches(String name) {
  if (toolName != null && toolName == name) return true;
  if (toolNamePattern != null && toolNamePattern!.hasMatch(name)) return true;
  return toolName == null && toolNamePattern == null;
}