ArgChoiceBuilder constructor

ArgChoiceBuilder(
  1. String name,
  2. dynamic value
)

A Choice for the user to input in int & string args. You can only have an int or string option.

Implementation

ArgChoiceBuilder(this.name, this.value) {
  if (value is! int && value is! String) {
    throw ArgumentError("Value could be either String or int type");
  }
}