bool hasAction(SemanticsAction action)

Whether actions contains the given action.

Source

bool hasAction(SemanticsAction action) => (actions & action.index) != 0;