ToDecimal constructor

ToDecimal(
  1. dynamic expr
)

Creates $toDecimal operator expression

Converts a value to a decimal. If the value cannot be converted to a decimal, $toDecimal errors. If the value is null or missing, $toDecimal returns null.

The ToDecimal takes any valid expression.

Implementation

ToDecimal(expr) : super('toDecimal', expr);