gt static method

Map<String, Object?> gt(
  1. Object? value
)

Constructs a greater than ($gt) comparison operator.

Matches values that are greater than the specified value.

value The value to compare against

Example:

var query = DQ.field('age', DQ.gt(18)); // { 'age': { '$gt': 18 } }

Implementation

static Map<String, Object?> gt(Object? value) {
  return {
    '\$gt': value,
  };
}