getInt method

int getInt(
  1. String key, [
  2. int? defaultValue
])

Returns int value by key or defaultValue

If map not contains key or the value has a different type and defaultValue is null then throw FormatException

Implementation

int getInt(String key, [int? defaultValue]) {
  return _value(key, defaultValue);
}