focusNode property

FocusNode focusNode

Returns the focus node from the closest widgets.Focus ancestor.

context.focusNode is equivalent to widgets.Focus.of`.

Implementation

widgets.FocusNode get focusNode {
  return widgets.Focus.of(this);
}