isNotNull method

Expr<bool> isNotNull()

Check if this expression is not NULL.

This is equivalent to this IS NOT NULL in SQL.

Important

This method only returns true if this is not an SQL NULL, meaning:

  • toExpr(null as JsonValue?).isNull() evaluates to false, and,
  • toExpr(JsonValue(null) as JsonValue?).isNull() evaluates to true.

Implementation

Expr<bool> isNotNull() => isNull().not();