clear method

void clear()

clear editor

Implementation

void clear() {
  replaceText(0, plainTextEditingValue.text.length - 1, '', const TextSelection.collapsed(offset: 0));
}