intValue method

int? intValue(
  1. String fieldName
)

Returns fieldName converted to int, or null when unavailable.

Implementation

int? intValue(String fieldName) => numValue(fieldName)?.toInt();