clear method
- bool unfocus = true,
Clears the TextEditingController's text without calling onFocus and onChanged.
Implementation
void clear({bool unfocus = true}) {
isEmpty.value = true;
controller.text = '';
error.value = null;
_previousText = null;
_previousSubmit = null;
changed.value = false;
if (unfocus) {
focus.unfocus();
}
}