autofocus property
Whether this text field should focus itself if nothing else is already focused. Defaults to true on desktop and false on touch devices.
If true, the keyboard will open as soon as this text field obtains focus. Otherwise, the keyboard is only shown after the user taps the text field.
Implementation
final bool? autofocus;