numValue method

num? numValue(
  1. String fieldName
)

Returns the raw numeric value for fieldName, or null when the field is null or cannot be converted to a number.

Unlike value, this typed helper does not apply calculated-context decimal-null-as-zero fallback. Use numOrZero when zero fallback is desired explicitly.

Implementation

num? numValue(String fieldName) => numValueAt(_indexOf(fieldName));