updateText method
- String newText
Implementation
void updateText(String newText) {
assert(newText != null, 'Text must not be null');
text = (newText != null) ? _applyMask(mask, newText) : '';
_lastUpdatedText = text;
moveCursorToEnd();
}
void updateText(String newText) {
assert(newText != null, 'Text must not be null');
text = (newText != null) ? _applyMask(mask, newText) : '';
_lastUpdatedText = text;
moveCursorToEnd();
}