textController property
TextEditingController
get
textController
Returns the TextEditingController if this control is a text control.
Throws if not a text control.
Implementation
TextEditingController get textController {
if (_control != null) return _control!.controller;
if (formGroup != null && name != null) {
return formGroup!.control(name!).controller;
}
throw Exception(
'ControlValueAcessor: control or formGroup and name must be provided',
);
}