autofocus property

bool autofocus
final

True if the menu will be selected as the initial focus when no other node in its scope is currently focused.

Defaults to false.

Ideally, there is only one widget with autofocus set in each FocusScope. If there is more than one widget with autofocus set, then the first one added to the tree will get focus.

Implementation

final bool autofocus;