Option.string constructor

Option.string(
  1. String name,
  2. String description, {
  3. bool? required = false,
})

Implementation

factory Option.string(String name, String description, { bool? required = false }) {
  return Option(name: name, description: description, type: OptionType.string, required: required);
}