clear method

void clear()

Clear the masked text of the formatter. Note: You need to call this method if you clear the text of the TextField, because it doesn't call the formatter when it has empty text.

Implementation

void clear() {
  _resultTextMasked = "";
  _resultTextArray.clear();
  _lastResValue = null;
  _lastNewValue = null;
}