SemanticsConfiguration class Null safety

Describes the semantic information associated with the owning RenderObject.

The information provided in the configuration is used to generate the semantics tree.

Constructors

SemanticsConfiguration()

Properties

attributedDecreasedValue AttributedString
The value that value will have after performing a SemanticsAction.decrease action in AttributedString format.
read / write
attributedHint AttributedString
A brief description of the result of performing an action on this node in AttributedString format.
read / write
attributedIncreasedValue AttributedString
The value that value will have after performing a SemanticsAction.increase action in AttributedString format.
read / write
attributedLabel AttributedString
A textual description of the owning RenderObject in AttributedString format.
read / write
attributedValue AttributedString
A textual description for the current value of the owning RenderObject in AttributedString format.
read / write
currentValueLength int?
The current number of characters that have been entered into an editable text field.
read / write
customSemanticsActions Map<CustomSemanticsAction, VoidCallback>
The handlers for each supported CustomSemanticsAction.
read / write
decreasedValue String
The value that value will have after performing a SemanticsAction.decrease action.
read / write
elevation double
The elevation in z-direction at which the owning RenderObject is located relative to its parent.
read / write
explicitChildNodes bool
Whether the configuration forces all children of the owning RenderObject that want to contribute semantic information to the semantics tree to do so in the form of explicit SemanticsNodes.
read / write
hasBeenAnnotated bool
Whether this configuration is empty.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
hasImplicitScrolling bool
Whether the platform can scroll the semantics node when the user attempts to move focus to an offscreen child.
read / write
hint String
A brief description of the result of performing an action on this node.
read / write
hintOverrides SemanticsHintOverrides?
Provides hint values which override the default hints on supported platforms.
read / write
increasedValue String
The value that value will have after performing a SemanticsAction.increase action.
read / write
indexInParent int?
The index of this node within the parent's list of semantic children.
read / write
isBlockingSemanticsOfPreviouslyPaintedNodes bool
Whether the owning RenderObject makes other RenderObjects previously painted within the same semantic boundary unreachable for accessibility purposes.
read / write
isButton bool
Whether the owning RenderObject is a button (true) or not (false).
read / write
isChecked bool?
If this node has Boolean state that can be controlled by the user, whether that state is checked or unchecked, corresponding to true and false, respectively.
read / write
isEnabled bool?
Whether the owning RenderObject is currently enabled.
read / write
isFocusable bool
Whether the owning RenderObject can hold the input focus.
read / write
isFocused bool
Whether the owning RenderObject currently holds the input focus.
read / write
isHeader bool
Whether the owning RenderObject is a header (true) or not (false).
read / write
isHidden bool
Whether the owning RenderObject is considered hidden.
read / write
isImage bool
Whether the semantics node represents an image.
read / write
isInMutuallyExclusiveGroup bool
Whether the owning RenderObject corresponds to UI that allows the user to pick one of several mutually exclusive options.
read / write
isKeyboardKey bool
Whether the owning RenderObject is a keyboard key (true) or not
read / write
Whether the owning RenderObject is a link (true) or not (false).
read / write
isMergingSemanticsOfDescendants bool
Whether the semantic information provided by the owning RenderObject and all of its descendants should be treated as one logical entity.
read / write
isMultiline bool
Whether the text field is multiline.
read / write
isObscured bool
Whether this.value should be obscured.
read / write
isReadOnly bool
Whether the owning RenderObject is read only.
read / write
isSelected bool
Whether the owning RenderObject is selected (true) or not (false).
read / write
isSemanticBoundary bool
Whether the RenderObject owner of this configuration wants to own its own SemanticsNode.
read / write
isSlider bool
Whether the owning RenderObject is a slider (true) or not (false).
read / write
isTextField bool
Whether the owning RenderObject is a text field.
read / write
isToggled bool?
If this node has Boolean state that can be controlled by the user, whether that state is on or off, corresponding to true and false, respectively.
read / write
label String
A textual description of the owning RenderObject.
read / write
liveRegion bool
Whether the semantics node is a live region.
read / write
maxValueLength int?
The maximum number of characters that can be entered into an editable text field.
read / write
namesRoute bool
Whether the semantics node contains the label of a route.
read / write
onCopy VoidCallback?
The handler for SemanticsAction.copy.
read / write
onCut VoidCallback?
The handler for SemanticsAction.cut.
read / write
onDecrease VoidCallback?
The handler for SemanticsAction.decrease.
read / write
onDidGainAccessibilityFocus VoidCallback?
The handler for SemanticsAction.didGainAccessibilityFocus.
read / write
onDidLoseAccessibilityFocus VoidCallback?
The handler for SemanticsAction.didLoseAccessibilityFocus.
read / write
onDismiss VoidCallback?
The handler for SemanticsAction.dismiss.
read / write
onIncrease VoidCallback?
The handler for SemanticsAction.increase.
read / write
onLongPress VoidCallback?
The handler for SemanticsAction.longPress.
read / write
onMoveCursorBackwardByCharacter MoveCursorHandler?
The handler for SemanticsAction.moveCursorBackwardByCharacter.
read / write
onMoveCursorBackwardByWord MoveCursorHandler?
The handler for SemanticsAction.moveCursorBackwardByWord.
read / write
onMoveCursorForwardByCharacter MoveCursorHandler?
The handler for SemanticsAction.moveCursorForwardByCharacter.
read / write
onMoveCursorForwardByWord MoveCursorHandler?
The handler for SemanticsAction.moveCursorForwardByWord.
read / write
onPaste VoidCallback?
The handler for SemanticsAction.paste.
read / write
onScrollDown VoidCallback?
The handler for SemanticsAction.scrollDown.
read / write
onScrollLeft VoidCallback?
The handler for SemanticsAction.scrollLeft.
read / write
onScrollRight VoidCallback?
The handler for SemanticsAction.scrollRight.
read / write
onScrollUp VoidCallback?
The handler for SemanticsAction.scrollUp.
read / write
onSetSelection SetSelectionHandler?
The handler for SemanticsAction.setSelection.
read / write
onSetText SetTextHandler?
The handler for SemanticsAction.setText.
read / write
onShowOnScreen VoidCallback?
The handler for SemanticsAction.showOnScreen.
read / write
onTap VoidCallback?
The handler for SemanticsAction.tap.
read / write
platformViewId int?
The id of the platform view, whose semantics nodes will be added as children to this node.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
scopesRoute bool
Whether the semantics node is the root of a subtree for which values should be announced.
read / write
scrollChildCount int?
The total number of scrollable children that contribute to semantics.
read / write
scrollExtentMax double?
Indicates the maximum in-range value for scrollPosition if the node is scrollable.
read / write
scrollExtentMin double?
Indicates the minimum in-range value for scrollPosition if the node is scrollable.
read / write
scrollIndex int?
The index of the first visible scrollable child that contributes to semantics.
read / write
scrollPosition double?
Indicates the current scrolling position in logical pixels if the node is scrollable.
read / write
sortKey SemanticsSortKey?
Determines the position of this node among its siblings in the traversal sort order.
read / write
tagsForChildren Iterable<SemanticsTag>?
The set of tags that this configuration wants to add to all child SemanticsNodes.
read-only
textDirection TextDirection?
The reading direction for the text in label, value, hint, increasedValue, and decreasedValue.
read / write
textSelection TextSelection?
The currently selected text (or the position of the cursor) within this.value if this node represents a text field.
read / write
thickness double
The extend that the owning RenderObject occupies in z-direction starting at elevation.
read / write
tooltip String
A textual description of the widget's tooltip.
read / write
value String
A textual description for the current value of the owning RenderObject.
read / write

Methods

absorb(SemanticsConfiguration child) → void
Absorb the semantic information from child into this configuration.
addTagForChildren(SemanticsTag tag) → void
Specifies a SemanticsTag that this configuration wants to apply to all child SemanticsNodes.
copy() SemanticsConfiguration
Returns an exact copy of this configuration.
getActionHandler(SemanticsAction action) SemanticsActionHandler?
Returns the action handler registered for action or null if none was registered.
isCompatibleWith(SemanticsConfiguration? other) bool
Whether this configuration is compatible with the provided other configuration.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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