reset method
reset field
- clear validation
- set value to initialValue
Implementation
@override
void reset() {
super.reset();
if (hasFocusNode) {
focusNode.unfocus();
}
if (value != null) {
textEditingController.text = widget.displayStringForOption(value!);
} else {
textEditingController.text = '';
}
}