controller method
Returns a text controller synchronized with the field named key.
Implementation
TextEditingController controller(String key) {
return _controllers.putIfAbsent(key, () {
final controller = TextEditingController(text: string(key));
controller.addListener(() {
_data[key] = controller.text;
_notifyListeners();
});
return controller;
});
}