dartCast<D2 extends Object> method Null safety

Expression<D2> dartCast<D2 extends Object>()

Casts this expression to an expression of D.

Calling dartCast will not affect the generated sql. In particular, it will NOT generate a CAST expression in sql. To generate a CAST in sql, use cast.

This method is used internally by drift.

Implementation

Expression<D2> dartCast<D2 extends Object>() {
  return _DartCastExpression<D, D2>(this);
}