getInt method

int getInt(
  1. String name, {
  2. int? fallback,
})

Throws AssertionError if not found and no fallback given. Throws FormatException if found but not parseable.

Implementation

int getInt(String name, {int? fallback}) =>
    _getTyped(name, fallback, int.parse);