autoFocus property
autoFocus Whether the widget should automatically request focus when it is inserted
into the widget tree. If set to true
, the widget will request focus
immediately after being built and inserted into the tree. If set to false
,
it will not request focus automatically.
The default value is false
Note due to limitations of flutter webview at the moment, focus doesn't launch the keyboard in mobile, however, it will set the cursor at the end on focus.
Implementation
final bool? autoFocus;