value property

String? get value

Implementation

String? get value {
  final options = this.options;
  for (var option in options) {
    if (option.selected ?? false) {
      return option.value;
    }
  }
  if (multiple ?? false) {
    return '';
  }
  return options.first.value;
}
set value (String? value)

Implementation

set value(String? value) {
  for (var option in options) {
    option.selected = option.value == value;
  }
}