trailingIconFocusNode property
final
Defines the FocusNode for the trailing icon.
If showTrailingIcon is false, trailingIconFocusNode must be null.
The focusNode is a long-lived object that's typically managed by a StatefulWidget parent. See FocusNode for more information.
To give the keyboard focus to this widget, provide a focusNode and then use the current FocusScope to request the focus:
FocusScope.of(context).requestFocus(myFocusNode);
This happens automatically when the widget is tapped.
To be notified when the widget gains or loses the focus, add a listener to the focusNode:
myFocusNode.addListener(() { print(myFocusNode.hasFocus); });
If null, this widget will create its own FocusNode.
Implementation
final FocusNode? trailingIconFocusNode;