isFlag property

bool get isFlag

Whether the option is boolean-valued flag.

Implementation

bool get isFlag => type == OptionType.flag;