focusController property

FocusController? focusController

Gets the focus controller registered with in this control.

Don't use focusController to add/remove focus to a control, use instead control.focus() and control.unfocus().

Don't use focusController to know if the control has focus, use instead control.hasFocus.

Use only focusController if you want to access the inner UI FocusNode of the control.

Example

Access the inner UI FocusNode of the control

FormControl control = this.form.control('email');

final focusNode =  control.focusController.focusNode;

See also focus().

See also unfocus().

See also hasFocus.

Implementation

FocusController? get focusController => _focusController;