SemanticsRole enum

An enum to describe the role for a semantics node.

The roles are translated into native accessibility roles in each platform.

Inheritance
Available extensions

Values

none → const SemanticsRole

Does not represent any role.

tab → const SemanticsRole

A tab button.

See also:

  • tabBar, which is the role for containers of tab buttons.
tabBar → const SemanticsRole

Contains tab buttons.

See also:

  • tab, which is the role for tab buttons.
tabPanel → const SemanticsRole

The main display for a tab.

dialog → const SemanticsRole

A pop up dialog.

alertDialog → const SemanticsRole

An alert dialog.

table → const SemanticsRole

A table structure containing data arranged in rows and columns.

See also:

cell → const SemanticsRole

A cell in a table that does not contain column or row header information.

See also:

row → const SemanticsRole

A row of cells or or columnHeaders in a table.

See also:

columnHeader → const SemanticsRole

A cell in a table contains header information for a column.

See also:

An input field for users to enter search terms.

dragHandle → const SemanticsRole

A control used for dragging across content.

For example, the drag handle of ReorderableList.

spinButton → const SemanticsRole

A control to cycle through content on tap.

For example, the next and previous month button of a CalendarDatePicker.

comboBox → const SemanticsRole

A input field with a dropdown list box attached.

For example, a DropdownMenu

A presentation of menu that usually remains visible and is usually presented horizontally.

For example, a MenuBar.

A permanently visible list of controls or a widget that can be made to open and close.

For example, a MenuAnchor or DropdownButton.

An item in a dropdown created by menu or menuBar.

See also:

An item with a checkbox in a dropdown created by menu or menuBar.

See also:

An item with a radio button in a dropdown created by menu or menuBar.

See also:

list → const SemanticsRole

A container to display multiple listItems in vertical or horizontal layout.

For example, a LisView or Column.

listItem → const SemanticsRole

An item in a list.

form → const SemanticsRole

An area that represents a form.

tooltip → const SemanticsRole

A pop up displayed when hovering over a component to provide contextual explanation.

loadingSpinner → const SemanticsRole

A graphic object that spins to indicate the application is busy.

For example, a CircularProgressIndicator.

progressBar → const SemanticsRole

A graphic object that shows progress with a numeric number.

For example, a LinearProgressIndicator.

hotKey → const SemanticsRole

A keyboard shortcut field that allows the user to enter a combination or sequence of keystrokes.

For example, Shortcuts.

radioGroup → const SemanticsRole

A group of radio buttons.

status → const SemanticsRole

A component to provide advisory information that is not important to justify an alert.

For example, a loading message for a web page.

alert → const SemanticsRole

A component to provide important and usually time-sensitive information.

The alert role should only be used for information that requires the user's immediate attention, for example:

  • An invalid value was entered into a form field.
  • The user's login session is about to expire.
  • The connection to the server was lost so local changes will not be saved.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<SemanticsRole>
A constant List of the values in this enum, in order of their declaration.