writeValue method

  1. @override
void writeValue(
  1. dynamic newValue
)

Write a new value to the element.

Implementation

@override
void writeValue(newValue) {
  initializeSelectionModel();
  if (newValue != null) {
    selectionModel.select(newValue);
  } else {
    selectionModel.clear();
  }
}