setText method
- FinderBase<
SemanticsNode> finder, - String text
Performs a SemanticsAction.setText action on the SemanticsNode
found by finder
using the given text
.
Throws a StateError if:
- The given
finder
returns zero or more than one result. - The SemanticsNode found with
finder
does not support SemanticsAction.setText.
Implementation
void setText(finders.FinderBase<SemanticsNode> finder, String text) {
performAction(finder, SemanticsAction.setText, args: text);
}