Hi@akhtar,
You can control the TextField in your Flutter App. The TextField widget of Flutter has an inbuilt method TextEditingController.clear() which is used to clear or empty the typed text inside the Text Input widget. The clear() method would empty the entered string text and set its default value is empty.
var msgController = TextEditingController();
TextField(
controller: msgController,
)
To know more about Flutter, join our Flutter Certification today.