matches method

bool matches(
  1. String queryName,
  2. int queryType
)

Check if record matches specified query

Implementation

bool matches(String queryName, int queryType) {
  return name.toLowerCase() == queryName.toLowerCase() && type == queryType;
}