matches method

  1. @override
bool matches(
  1. IPLDNode node
)
override

Whether the condition holds for node.

Implementation

@override
bool matches(IPLDNode node) {
  if (node.kind != Kind.MAP) return false;
  return node.mapValue.entries.any((e) => e.key == field);
}