Intermediate
Flutter
Q78 / 100
What is the TextEditingController used for in Flutter?
Correct! Well done.
Incorrect.
The correct answer is B) Reading, setting, and listening to changes in a TextField's text content and cursor position
B
Correct Answer
Reading, setting, and listening to changes in a TextField's text content and cursor position
Explanation
TextEditingController lets you read (controller.text), set (controller.text = '...'), and listen to changes in a TextField. Assign it to TextField's controller parameter. Always dispose it in dispose() to free resources.
Progress
78/100