CommandOption.bool constructor

CommandOption.bool(
  1. Display label,
  2. Display description, {
  3. bool? required = false,
})

Implementation

factory CommandOption.bool(Display label, Display description, { bool? required = false }) {
  return CommandOption(
    label: label,
    description: description,
    type: OptionType.boolean,
    required: required
  );
}