isNull method

QueryExpressionJunction<T, InstanceType> isNull()

Adds a 'null check' expression to a query.

A query will only return objects where the selected property is null.

This method can be applied to any property type.

Example:

  var q = new Query<Employee>()
    ..where((e) => e.manager).isNull();

Implementation

QueryExpressionJunction<T, InstanceType> isNull() {
  expression = const NullCheckExpression(shouldBeNull: true);

  return _createJunction();
}