getText method
Retrieves the text entered in the input field with the given id.
Throws an exception if no input with the given id is found.
id: The unique identifier for the input field.
Implementation
String getText(String id) {
final controller = controllerFromId(id);
return controller.text;
}