optionAsBool method

bool? optionAsBool(
  1. String key, [
  2. bool? def
])

Implementation

bool? optionAsBool(String key, [bool? def]) =>
    option<bool>(key, def, TypeParser.parseBool);