and static method

Map<String, Object?> and(
  1. List<Object?> list
)

Constructs a logical AND query.

Takes a list of conditions and joins them using the \$and operator.

Example:

var query = DQ.and([DQ.eq('value1'), DQ.eq('value2')]); // { '\$and': [ 'value1', 'value2' ] }

Implementation

static Map<String, Object?> and(List<Object?> list) {
  return {
    '\$and': list,
  };
}