TextFieldWithArgs typedef
TextFieldWithArgs =
Widget Function(TextEditingController controller, VoidCallback onFieldTap, bool showDropdown, ValueSetter<bool> close)
A function type definition for creating a text field widget.
This function type expects a TextEditingController, a callback function
for tap events on the text field, and a boolean flag to show or hide the
dropdown.
Parameters:
controller: TheTextEditingControllerfor the text field.onFieldTap: A callback function of typeVoidCallbackwhich gets triggered when the text field is tapped.showDropdown: A boolean flag to indicate whether to show the dropdown.
Returns:
Widget: The text field widget created using the provided parameters.
Implementation
typedef TextFieldWithArgs = Widget Function(
TextEditingController controller,
VoidCallback onFieldTap,
bool showDropdown,
ValueSetter<bool> close,
);