clear method
void
clear()
Clears the current text value.
This is useful for resetting the PIN input after submission or error. All listeners will be notified of the change.
Example:
// After validation error
pinInputController.clear();
Implementation
void clear() {
if (_text.isNotEmpty) {
_text = '';
notifyListeners();
}
}