focusedWidget

primaryFocus

?.

context

?.

widget

if

focusedWidget

is

EditableText

widget

controller

text

'Updated Text'

Code after migration:

final

BuildContext

focusedContext

primaryFocus

?.

context

if

focusedContext

!=

null

Actions

maybeInvoke

focusedContext

ReplaceTextIntent

'UpdatedText'

));

For a comprehensive list of Intents supported by the EditableText widget,
refer to the documentation of the EditableText widget.

Timeline