autofocus property
The directionality of the text.
This decides how textAlign values like TextAlign.start and TextAlign.end are interpreted.
This is also used to disambiguate how to render bidirectional text. For example, if the text is an English phrase followed by a Hebrew phrase, in a TextDirection.ltr context the English phrase will be on the left and the Hebrew phrase to its right, while in a TextDirection.rtl context, the English phrase will be on the right and the Hebrew phrase on its left.
Defaults to the ambient Directionality, if any. Whether this text field should focus itself if nothing else is already focused.
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.
Defaults to false.
Implementation
// final TextDirection? textDirection;
/// {@macro flutter.widgets.editableText.autofocus}
final bool autofocus;