role property
A enum to describe what role the subtree represents.
Setting the role for a widget subtree helps assistive technologies, such as screen readers, understand and interact with the UI correctly.
Defaults to SemanticsRole.none if not set, which means the subtree does not represent any complex ui or controls.
For a list of available roles, see SemanticsRole.
Implementation
SemanticsRole get role => _role;
Implementation
set role(SemanticsRole value) {
_role = value;
_hasBeenAnnotated = true;
}