optionalValue<V> method
V?
optionalValue<V>(
- OptionDefinition<
V> option
inherited
Returns the value of an optional configuration option.
Returns null
if the option is not set.
Throws ArgumentError if the option is unknown.
Implementation
V? optionalValue<V>(final OptionDefinition<V> option) {
final resolution = _getOptionResolution(option);
return resolution.value as V?;
}