ifNull<T extends Object> function
Null safety
- Expression<
T> first, - Expression<
T> second
Evaluates to the first expression that's not null, or null if both evaluate to null. See coalesce if you need more than 2.
Implementation
Expression<T> ifNull<T extends Object>(
Expression<T> first, Expression<T> second) {
return FunctionCallExpression<T>('IFNULL', [first, second]);
}