argumentMatches method

bool argumentMatches(
  1. int index,
  2. Pattern pattern
)

Implementation

bool argumentMatches(int index, Pattern pattern) {
  var val = argumentAsString(index);
  if (val == null) return false;

  return _matches(pattern, val);
}