equalTo method

Query equalTo(
  1. Object? value, {
  2. String? key,
})

Create a query constrained to only return child nodes with the given value (and key, if provided).

If a key is provided, there is at most one such child as names are unique.

Implementation

Query equalTo(Object? value, {String? key}) {
  return Query._(
    _queryDelegate,
    _modifiers
        .start(StartCursorModifier.startAt(value, key))
        .end(EndCursorModifier.endAt(value, key)),
  );
}