focusNode property
Defines the keyboard focus for this
To give the keyboard focus to this widget, provide a focusNode and then
use the current FocusScope to request the focus:
Don't forget to dispose focusNode
@override
void dispose() {
focusNode.dispose();
super.dispose();
}
Implementation
final FocusNode? focusNode;