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