ToInt constructor

ToInt(
  1. dynamic expr
)

Creates $toInt operator expression

Converts a value to an integer. If the value cannot be converted to an integer, $toInt errors. If the value is null or missing, $toInt returns null.

The ToInt takes any valid expression.

Implementation

ToInt(expr) : super('toInt', expr);