value property

  1. @override
List<String> value
override

Implementation

@override
List<String> get value =>
    _selectElement.selectedOptions.map((so) => so.text!).toList();
  1. @override
void value=(List<String> newValue)
override

Implementation

@override
set value(List<String> newValue) {
  final oldValue =
      _selectElement.selectedOptions.map((so) => so.text!).toList();
  for (final option in _selectElement.options) {
    if (newValue.contains(option.text)) {
      option.selected = true;
    }
  }
  fireValueChange(oldValue, value);
}