writeValue method

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

Write a new value to the element.

Implementation

@override
void writeValue(dynamic selectedValue) {
  if (selectedValue != null) selected = selectedValue;
}