autoFocus property
Whether to automatically focus the field (showing the keyboard) shortly
after the widget is first built. Defaults to true.
When true, focus is requested ~350ms after the first frame so a route
transition animating in doesn't fight the keyboard appearing. When
false, the field is created without focus and the user must tap on it
to start typing. Only consulted at initState — flipping it later has
no effect.
Implementation
final bool autoFocus;