reset method

  1. @override
void reset()

reset field

  1. clear validation
  2. 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 = '';
  }
}