match static method

bool match(
  1. Map<String, dynamic> document,
  2. Map<String, dynamic> query
)

Implementation

static bool match(Map<String, dynamic> document, Map<String, dynamic> query) {
  for (final key in query.keys) {
    if (document[key] != query[key]) {
      return false;
    }
  }
  return true;
}