changeText method
Updates the text value and notifies all listeners.
This method should be called whenever the PIN input changes (when user types or deletes). All widgets listening to this controller will be notified of the change.
text - The new text value to set.
Implementation
void changeText(String text) {
if (_text != text) {
_text = text;
notifyListeners();
}
}