clearActiveTextInput function
void
clearActiveTextInput()
Clears the currently active text input field.
Invokes a TextFieldClearIntent on the focused widget to clear its content. This is useful for programmatically clearing text fields that have focus.
Example:
clearActiveTextInput(); // Clears the focused text field
Implementation
void clearActiveTextInput() {
TextFieldClearIntent intent = const TextFieldClearIntent();
invokeActionOnFocusedWidget(intent);
}