tryIntValue static method

int? tryIntValue(
  1. Map<String, Object?> src,
  2. String field, {
  3. int nullValue = 0,
})

Implementation

static int? tryIntValue(Map<String, Object?> src, String field, {int nullValue = 0}) {
  if (src.containsKey(field)) {
    return intValue(src, field, nullValue: nullValue);
  };
  return null;
}