optionAsInt method

int? optionAsInt(
  1. String key, [
  2. int? def
])

Implementation

int? optionAsInt(String key, [int? def]) =>
    option<int>(key, def, TypeParser.parseInt);