decimalOrZero method

FdcDecimal decimalOrZero(
  1. String fieldName
)

Returns fieldName as FdcDecimal, using FdcDecimal.zero for null or non-convertible values.

Implementation

FdcDecimal decimalOrZero(String fieldName) =>
    decimalValue(fieldName) ?? FdcDecimal.zero;