updateInputValue method

void updateInputValue(
  1. T optionValue,
  2. String text
)

Update an input option's value.

Implementation

void updateInputValue(T optionValue, String text) {
  inputValues[optionValue] = text;
  final opt = options.firstWhere((o) => o.value == optionValue);
  opt.onInputChange?.call(text);
}