ChoiceConfigKnob<T> constructor

ChoiceConfigKnob<T>(
  1. List<T> choices, {
  2. required T value,
})

Creates a new knob to with the specified default value of the available choices.

Implementation

ChoiceConfigKnob(this.choices, {required super.value}) {
  if (!choices.contains(value)) {
    throw RohdHclException('Default value should be one of the choices.');
  }
}