semantics

package
v1.9.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 28, 2026 License: BSD-3-Clause Imports: 16 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package semantics describes the app to assistive technology: SemanticsNode, actions and flags.

Flutter: package:flutter/semantics.dart.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomSemanticsActionGetIdentifier

func CustomSemanticsActionGetIdentifier(a CustomSemanticsAction) int

CustomSemanticsActionGetIdentifier is the ID of the action; the same action always has the same ID.

Flutter: semantics/semantics.dart CustomSemanticsAction.getIdentifier

func DebugResetSemanticsIDCounter

func DebugResetSemanticsIDCounter()

DebugResetSemanticsIDCounter makes the next node get the ID 1.

Flutter: semantics/semantics.dart debugResetSemanticsIdCounter

func NewAttributedStringProperty

func NewAttributedStringProperty(name string, value *AttributedString, showWhenEmpty bool, opts ...foundation.DiagnosticsPropertyOpts) *foundation.DiagnosticsProperty

NewAttributedStringProperty creates a property that describes an attributed string, in quotes with its attributes. The value is nil for Dart's null. The property is not interesting if the string is empty, unless showWhenEmpty.

Flutter: semantics/semantics.dart AttributedStringProperty

func ResetCustomSemanticsActionsForTests

func ResetCustomSemanticsActionsForTests()

ResetCustomSemanticsActionsForTests forgets all the IDs.

Flutter: semantics/semantics.dart CustomSemanticsAction.resetForTests

func SemanticsEventString

func SemanticsEventString(e SemanticsEvent, typeName string) string

SemanticsEventString describes an event with its sorted data.

Flutter: semantics/semantics_event.dart SemanticsEvent.toString

func SemanticsSortKeyCompare

func SemanticsSortKeyCompare(a, b SemanticsSortKey) int

SemanticsSortKeyCompare compares two keys of the same type. In debug builds a key of another type panics with the tag SemanticsSortKeyTypeMismatch.

Flutter: semantics/semantics.dart SemanticsSortKey.compareTo

Types

type AccessibilityFocusBlockType

type AccessibilityFocusBlockType int

AccessibilityFocusBlockType says what the accessibility focus is blocked for.

Flutter: semantics/semantics.dart AccessibilityFocusBlockType

const (
	// AccessibilityFocusBlockTypeNone does not block the accessibility focus.
	//
	// Flutter: semantics/semantics.dart AccessibilityFocusBlockType.none
	AccessibilityFocusBlockTypeNone AccessibilityFocusBlockType = iota
	// AccessibilityFocusBlockTypeBlockSubtree blocks the node and its subtree.
	//
	// Flutter: semantics/semantics.dart AccessibilityFocusBlockType.blockSubtree
	AccessibilityFocusBlockTypeBlockSubtree
	// AccessibilityFocusBlockTypeBlockNode blocks the node only.
	//
	// Flutter: semantics/semantics.dart AccessibilityFocusBlockType.blockNode
	AccessibilityFocusBlockTypeBlockNode
)

The values of AccessibilityFocusBlockType. The zero value is AccessibilityFocusBlockTypeNone.

func (AccessibilityFocusBlockType) Name

Name returns the name of the value, such as "blockNode".

Flutter: semantics/semantics.dart AccessibilityFocusBlockType.name

func (AccessibilityFocusBlockType) String

String is "AccessibilityFocusBlockType.blockNode".

Flutter: semantics/semantics.dart AccessibilityFocusBlockType.toString

type AnnounceSemanticsEvent

type AnnounceSemanticsEvent struct {

	// Message is the text to announce.
	Message string
	// TextDirection is the direction of the message.
	TextDirection ui.TextDirection
	// ViewID is the view of the announcement.
	ViewID ui.ViewID
	// Assertiveness is how urgent the announcement is.
	Assertiveness Assertiveness
	// contains filtered or unexported fields
}

AnnounceSemanticsEvent says that the platform should announce a message.

Flutter: semantics/semantics_event.dart AnnounceSemanticsEvent

func NewAnnounceSemanticsEvent

func NewAnnounceSemanticsEvent(message string, textDirection ui.TextDirection, viewID ui.ViewID, assertiveness ...Assertiveness) *AnnounceSemanticsEvent

NewAnnounceSemanticsEvent creates an announcement.

Flutter: semantics/semantics_event.dart AnnounceSemanticsEvent.new

func (*AnnounceSemanticsEvent) GetDataMap

func (e *AnnounceSemanticsEvent) GetDataMap() map[string]any

GetDataMap is the data of the event.

Flutter: semantics/semantics_event.dart AnnounceSemanticsEvent.getDataMap

func (*AnnounceSemanticsEvent) ToMap

func (e *AnnounceSemanticsEvent) ToMap(nodeID foundation.Opt[int]) map[string]any

ToMap is the message of the event.

func (AnnounceSemanticsEvent) Type

func (b AnnounceSemanticsEvent) Type() string

type Assertiveness

type Assertiveness int

Assertiveness is how urgently an announcement is spoken.

Flutter: semantics/semantics_event.dart Assertiveness

const (
	// AssertivenessPolite waits for the speech in progress to finish.
	//
	// Flutter: semantics/semantics_event.dart Assertiveness.polite
	AssertivenessPolite Assertiveness = iota
	// AssertivenessAssertive interrupts the speech in progress.
	//
	// Flutter: semantics/semantics_event.dart Assertiveness.assertive
	AssertivenessAssertive
)

The values of Assertiveness. The zero value is AssertivenessPolite.

type AttributedString

type AttributedString struct {
	// String is the text.
	//
	// Flutter: semantics/semantics.dart AttributedString.string
	String string
	// Attributes are the attributes of ranges of the text.
	//
	// Flutter: semantics/semantics.dart AttributedString.attributes
	Attributes []ui.StringAttribute
}

AttributedString is a string with attributes on ranges of it.

Flutter: semantics/semantics.dart AttributedString

func NewAttributedString

func NewAttributedString(s string, attributes ...ui.StringAttribute) AttributedString

NewAttributedString creates a string with attributes. In debug builds it panics with the tag AttributedStringInvalid if the string is empty and has attributes, or an attribute is outside of the string.

Flutter: semantics/semantics.dart AttributedString.new

func (AttributedString) Add

Add concatenates two strings; the attributes of the second move to its place.

Flutter: semantics/semantics.dart AttributedString.+

func (AttributedString) Equal

Equal is Dart's ==: the same text and equal attributes.

Flutter: semantics/semantics.dart AttributedString.==

func (AttributedString) GoString

func (a AttributedString) GoString() string

GoString describes the text and its attributes.

Flutter: semantics/semantics.dart AttributedString.toString

type ChildSemanticsConfigurationsDelegate

type ChildSemanticsConfigurationsDelegate func(configs []*SemanticsConfiguration) *ChildSemanticsConfigurationsResult

ChildSemanticsConfigurationsDelegate decides which configurations of the children merge into the node and which form sibling groups.

Flutter: semantics/semantics.dart ChildSemanticsConfigurationsDelegate

type ChildSemanticsConfigurationsResult

type ChildSemanticsConfigurationsResult struct {
	// MergeUp are the configurations that merge into the node.
	MergeUp []*SemanticsConfiguration
	// SiblingMergeGroups are groups of configurations that form a sibling node
	// of this one each.
	SiblingMergeGroups [][]*SemanticsConfiguration
}

ChildSemanticsConfigurationsResult is the decision of a ChildSemanticsConfigurationsDelegate.

Flutter: semantics/semantics.dart ChildSemanticsConfigurationsResult

type ChildSemanticsConfigurationsResultBuilder

type ChildSemanticsConfigurationsResultBuilder struct {
	// contains filtered or unexported fields
}

ChildSemanticsConfigurationsResultBuilder builds a ChildSemanticsConfigurationsResult.

Flutter: semantics/semantics.dart ChildSemanticsConfigurationsResultBuilder

func NewChildSemanticsConfigurationsResultBuilder

func NewChildSemanticsConfigurationsResultBuilder() *ChildSemanticsConfigurationsResultBuilder

NewChildSemanticsConfigurationsResultBuilder creates an empty builder.

Flutter: semantics/semantics.dart ChildSemanticsConfigurationsResultBuilder.new

func (*ChildSemanticsConfigurationsResultBuilder) Build

Build returns the result. In debug builds it panics with the tag SemanticsConfigurationDuplicated if a configuration was marked twice.

Flutter: semantics/semantics.dart ChildSemanticsConfigurationsResultBuilder.build

func (*ChildSemanticsConfigurationsResultBuilder) MarkAsMergeUp

MarkAsMergeUp makes the configuration merge into the node.

Flutter: semantics/semantics.dart ChildSemanticsConfigurationsResultBuilder.markAsMergeUp

func (*ChildSemanticsConfigurationsResultBuilder) MarkAsSiblingMergeGroup

func (b *ChildSemanticsConfigurationsResultBuilder) MarkAsSiblingMergeGroup(configs []*SemanticsConfiguration)

MarkAsSiblingMergeGroup makes the configurations merge into one sibling node.

Flutter: semantics/semantics.dart ChildSemanticsConfigurationsResultBuilder.markAsSiblingMergeGroup

type CustomSemanticsAction

type CustomSemanticsAction struct {
	// contains filtered or unexported fields
}

CustomSemanticsAction is an action that an assistive technology can invoke on a node, with a label of its own, or the hint that replaces the one of a standard action.

Flutter: semantics/semantics.dart CustomSemanticsAction

func CustomSemanticsActionGetAction

func CustomSemanticsActionGetAction(id int) (CustomSemanticsAction, bool)

CustomSemanticsActionGetAction is the action with the ID, if there is one.

Flutter: semantics/semantics.dart CustomSemanticsAction.getAction

func NewCustomSemanticsAction

func NewCustomSemanticsAction(label string) CustomSemanticsAction

NewCustomSemanticsAction creates an action with a label, which must not be empty (SemanticsActionLabelEmpty).

Flutter: semantics/semantics.dart CustomSemanticsAction.new

func NewCustomSemanticsActionOverriding

func NewCustomSemanticsActionOverriding(hint string, action ui.SemanticsAction) CustomSemanticsAction

NewCustomSemanticsActionOverriding creates an action that gives the hint to a standard action; the hint must not be empty (SemanticsActionHintEmpty).

Flutter: semantics/semantics.dart CustomSemanticsAction.overridingAction

func (CustomSemanticsAction) Action

Action is the standard action that an overriding action gives a hint to; zero if there is none.

Flutter: semantics/semantics.dart CustomSemanticsAction.action

func (CustomSemanticsAction) Hint

func (a CustomSemanticsAction) Hint() string

Hint is the hint of an overriding action.

Flutter: semantics/semantics.dart CustomSemanticsAction.hint

func (CustomSemanticsAction) IsOverriding

func (a CustomSemanticsAction) IsOverriding() bool

IsOverriding is whether it overrides the hint of a standard action.

func (CustomSemanticsAction) Label

func (a CustomSemanticsAction) Label() string

Label is the label of the action; "" for an overriding action.

Flutter: semantics/semantics.dart CustomSemanticsAction.label

func (CustomSemanticsAction) String

func (a CustomSemanticsAction) String() string

String describes the action, with its ID.

Flutter: semantics/semantics.dart CustomSemanticsAction.toString

type DebugSemanticsDumpOrder

type DebugSemanticsDumpOrder int

DebugSemanticsDumpOrder is the order in which a dump lists the children.

Flutter: semantics/semantics.dart DebugSemanticsDumpOrder

const (
	// DebugSemanticsDumpOrderTraversal lists the children in traversal order.
	//
	// Flutter: semantics/semantics.dart DebugSemanticsDumpOrder.traversalOrder
	DebugSemanticsDumpOrderTraversal DebugSemanticsDumpOrder = iota
	// DebugSemanticsDumpOrderInverseHitTest lists the children in inverse hit
	// test order.
	//
	// Flutter: semantics/semantics.dart DebugSemanticsDumpOrder.inverseHitTest
	DebugSemanticsDumpOrderInverseHitTest
)

The values of DebugSemanticsDumpOrder. The zero value is DebugSemanticsDumpOrderTraversal, Flutter's default.

type FocusSemanticEvent

type FocusSemanticEvent struct {
	// contains filtered or unexported fields
}

FocusSemanticEvent says that a node got the focus.

Flutter: semantics/semantics_event.dart FocusSemanticEvent

func NewFocusSemanticEvent

func NewFocusSemanticEvent() *FocusSemanticEvent

NewFocusSemanticEvent creates the event.

Flutter: semantics/semantics_event.dart FocusSemanticEvent.new

func (*FocusSemanticEvent) GetDataMap

func (e *FocusSemanticEvent) GetDataMap() map[string]any

GetDataMap is empty.

Flutter: semantics/semantics_event.dart FocusSemanticEvent.getDataMap

func (*FocusSemanticEvent) ToMap

func (e *FocusSemanticEvent) ToMap(nodeID foundation.Opt[int]) map[string]any

ToMap is the message of the event.

func (FocusSemanticEvent) Type

func (b FocusSemanticEvent) Type() string

type LongPressSemanticsEvent

type LongPressSemanticsEvent struct {
	// contains filtered or unexported fields
}

LongPressSemanticsEvent says that a node was long pressed.

Flutter: semantics/semantics_event.dart LongPressSemanticsEvent

func NewLongPressSemanticsEvent

func NewLongPressSemanticsEvent() *LongPressSemanticsEvent

NewLongPressSemanticsEvent creates the event.

Flutter: semantics/semantics_event.dart LongPressSemanticsEvent.new

func (*LongPressSemanticsEvent) GetDataMap

func (e *LongPressSemanticsEvent) GetDataMap() map[string]any

GetDataMap is empty.

Flutter: semantics/semantics_event.dart LongPressSemanticsEvent.getDataMap

func (*LongPressSemanticsEvent) ToMap

func (e *LongPressSemanticsEvent) ToMap(nodeID foundation.Opt[int]) map[string]any

ToMap is the message of the event.

func (LongPressSemanticsEvent) Type

func (b LongPressSemanticsEvent) Type() string

type MoveCursorHandler

type MoveCursorHandler func(extendSelection bool)

MoveCursorHandler moves the cursor; extendSelection says whether the selection grows.

Flutter: semantics/semantics.dart MoveCursorHandler

type OrdinalSortKey

type OrdinalSortKey struct {
	SemanticsSortKeyBase
	// contains filtered or unexported fields
}

OrdinalSortKey is a sort key that orders by a number.

Flutter: semantics/semantics.dart OrdinalSortKey

func NewOrdinalSortKey

func NewOrdinalSortKey(order float64, name ...string) *OrdinalSortKey

NewOrdinalSortKey creates a key. In debug builds an order that is infinite or NaN panics with the tag OrdinalSortKeyOrderInvalid.

Flutter: semantics/semantics.dart OrdinalSortKey.new

func (*OrdinalSortKey) DebugFillProperties

func (k *OrdinalSortKey) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the name and the order.

Flutter: semantics/semantics.dart OrdinalSortKey.debugFillProperties

func (*OrdinalSortKey) DoCompare

func (k *OrdinalSortKey) DoCompare(other SemanticsSortKey) int

DoCompare compares the orders.

Flutter: semantics/semantics.dart OrdinalSortKey.doCompare

func (*OrdinalSortKey) Order

func (k *OrdinalSortKey) Order() float64

Order is the number that the key orders by.

Flutter: semantics/semantics.dart OrdinalSortKey.order

func (*OrdinalSortKey) String

func (k *OrdinalSortKey) String() string

String describes the key, such as "OrdinalSortKey#1a2b3(order: 1.0)".

Flutter: semantics/semantics.dart OrdinalSortKey.toString

type ScrollToOffsetHandler

type ScrollToOffsetHandler func(targetOffset ui.Offset)

ScrollToOffsetHandler scrolls to an offset.

Flutter: semantics/semantics.dart ScrollToOffsetHandler

type SemanticsActionHandler

type SemanticsActionHandler func(args any)

SemanticsActionHandler handles an action; args are its arguments (see ui.SemanticsActionEvent).

Flutter: semantics/semantics.dart SemanticsActionHandler

type SemanticsBinding

type SemanticsBinding struct {

	// DebugSemanticsDisableAnimations overrides DisableAnimations in debug
	// builds when it is set.
	//
	// Flutter: semantics/debug.dart debugSemanticsDisableAnimations
	DebugSemanticsDisableAnimations foundation.Opt[bool]
	// contains filtered or unexported fields
}

SemanticsBinding is the glue between the semantics tree and the engine: it knows whether semantics are wanted, passes the actions of assistive technologies to the framework, and creates the update builders. Create one per app with NewSemanticsBinding.

Flutter: semantics/binding.dart SemanticsBinding

func NewSemanticsBinding

func NewSemanticsBinding(dispatcher *ui.PlatformDispatcher, sched *scheduler.SchedulerBinding, opts ...SemanticsBindingOpts) *SemanticsBinding

NewSemanticsBinding creates the binding and connects it to the dispatcher. The scheduler delays the accessibility features callback until after a frame that is being built.

Flutter: semantics/binding.dart SemanticsBinding.initInstances

func (*SemanticsBinding) AccessibilityFeatures

func (b *SemanticsBinding) AccessibilityFeatures() ui.AccessibilityFeatures

AccessibilityFeatures are the accessibility settings of the system.

Flutter: semantics/binding.dart SemanticsBinding.accessibilityFeatures

func (*SemanticsBinding) AddSemanticsActionListener

func (b *SemanticsBinding) AddSemanticsActionListener(listener func(ui.SemanticsActionEvent)) (remove func())

AddSemanticsActionListener calls the listener for each action of an assistive technology, before it is performed. It returns a function that removes it.

Flutter: semantics/binding.dart SemanticsBinding.addSemanticsActionListener

func (*SemanticsBinding) AddSemanticsEnabledListener

func (b *SemanticsBinding) AddSemanticsEnabledListener(listener foundation.VoidCallback) foundation.ListenerHandle

AddSemanticsEnabledListener calls the listener when SemanticsEnabled changes.

Flutter: semantics/binding.dart SemanticsBinding.addSemanticsEnabledListener

func (*SemanticsBinding) CreateSemanticsUpdateBuilder

func (b *SemanticsBinding) CreateSemanticsUpdateBuilder() *ui.SemanticsUpdateBuilder

CreateSemanticsUpdateBuilder creates a builder for an update.

Flutter: semantics/binding.dart SemanticsBinding.createSemanticsUpdateBuilder

func (*SemanticsBinding) DebugOutstandingSemanticsHandles

func (b *SemanticsBinding) DebugOutstandingSemanticsHandles() int

DebugOutstandingSemanticsHandles is the number of handles that are open.

Flutter: semantics/binding.dart SemanticsBinding.debugOutstandingSemanticsHandles

func (*SemanticsBinding) DisableAnimations

func (b *SemanticsBinding) DisableAnimations() bool

DisableAnimations is whether animations should be off: the system asks for it, or in debug builds DebugSemanticsDisableAnimations says so.

Flutter: semantics/binding.dart SemanticsBinding.disableAnimations

func (*SemanticsBinding) EnsureSemantics

func (b *SemanticsBinding) EnsureSemantics() *SemanticsHandle

EnsureSemantics asks for semantics until the handle is disposed.

Flutter: semantics/binding.dart SemanticsBinding.ensureSemantics

func (*SemanticsBinding) HandleAccessibilityFeaturesChanged

func (b *SemanticsBinding) HandleAccessibilityFeaturesChanged()

HandleAccessibilityFeaturesChanged reads the accessibility features again. An owner of a binding that needs to react to the change wraps it.

Flutter: semantics/binding.dart SemanticsBinding.handleAccessibilityFeaturesChanged

func (*SemanticsBinding) RemoveSemanticsEnabledListener

func (b *SemanticsBinding) RemoveSemanticsEnabledListener(handle foundation.ListenerHandle)

RemoveSemanticsEnabledListener removes a listener.

Flutter: semantics/binding.dart SemanticsBinding.removeSemanticsEnabledListener

func (*SemanticsBinding) SemanticsEnabled

func (b *SemanticsBinding) SemanticsEnabled() bool

SemanticsEnabled is whether semantics are wanted: an assistive technology asks for them or a handle is open.

Flutter: semantics/binding.dart SemanticsBinding.semanticsEnabled

func (*SemanticsBinding) SetPerformSemanticsAction

func (b *SemanticsBinding) SetPerformSemanticsAction(fn func(ui.SemanticsActionEvent))

SetPerformSemanticsAction sets the function that performs the actions of assistive technologies.

Flutter: semantics/binding.dart SemanticsBinding.performSemanticsAction

type SemanticsBindingOpts

type SemanticsBindingOpts struct {
	// PerformSemanticsAction performs an action of an assistive technology; the
	// renderer binding passes the action to the semantics owners.
	PerformSemanticsAction func(action ui.SemanticsActionEvent)
}

SemanticsBindingOpts are the optional parameters of NewSemanticsBinding.

Flutter: semantics/binding.dart SemanticsBinding.initInstances

type SemanticsConfiguration

type SemanticsConfiguration struct {
	// IsBlockingUserActions is whether the node and its subtree can not
	// perform user actions.
	//
	// Flutter: semantics/semantics.dart SemanticsConfiguration.isBlockingUserActions
	IsBlockingUserActions bool
	// ExplicitChildNodes is whether the children form their own nodes instead of
	// merging into this one.
	//
	// Flutter: semantics/semantics.dart SemanticsConfiguration.explicitChildNodes
	ExplicitChildNodes bool
	// IsBlockingSemanticsOfPreviouslyPaintedNodes hides the semantics of the
	// nodes painted before this one.
	//
	// Flutter: semantics/semantics.dart SemanticsConfiguration.isBlockingSemanticsOfPreviouslyPaintedNodes
	IsBlockingSemanticsOfPreviouslyPaintedNodes bool
	// Locale is the locale of the strings of the node.
	//
	// Flutter: semantics/semantics.dart SemanticsConfiguration.locale
	Locale foundation.Opt[ui.Locale]
	// contains filtered or unexported fields
}

SemanticsConfiguration describes the semantic information of a render object: the flags, the strings, the actions, and how the object takes part in the semantics tree.

Flutter: semantics/semantics.dart SemanticsConfiguration

func NewSemanticsConfiguration

func NewSemanticsConfiguration() *SemanticsConfiguration

NewSemanticsConfiguration creates an empty configuration.

Flutter: semantics/semantics.dart SemanticsConfiguration.new

func (*SemanticsConfiguration) Absorb

Absorb merges the configuration of a child into this one. In debug builds it panics with the tag SemanticsAbsorbWithExplicitChildren if the configuration has explicit child nodes.

Flutter: semantics/semantics.dart SemanticsConfiguration.absorb

func (*SemanticsConfiguration) AccessibilityFocusBlockType

func (c *SemanticsConfiguration) AccessibilityFocusBlockType() AccessibilityFocusBlockType

AccessibilityFocusBlockType is what the accessibility focus is blocked for.

Flutter: semantics/semantics.dart SemanticsConfiguration.accessibilityFocusBlockType

func (*SemanticsConfiguration) AddTagForChildren

func (c *SemanticsConfiguration) AddTagForChildren(tag SemanticsTag)

AddTagForChildren makes the children get the tag.

Flutter: semantics/semantics.dart SemanticsConfiguration.addTagForChildren

func (*SemanticsConfiguration) AttributedDecreasedValue

func (c *SemanticsConfiguration) AttributedDecreasedValue() AttributedString

AttributedDecreasedValue is the decreased value with its attributes.

Flutter: semantics/semantics.dart SemanticsConfiguration.attributedDecreasedValue

func (*SemanticsConfiguration) AttributedHint

func (c *SemanticsConfiguration) AttributedHint() AttributedString

AttributedHint is the hint with its attributes.

Flutter: semantics/semantics.dart SemanticsConfiguration.attributedHint

func (*SemanticsConfiguration) AttributedIncreasedValue

func (c *SemanticsConfiguration) AttributedIncreasedValue() AttributedString

AttributedIncreasedValue is the increased value with its attributes.

Flutter: semantics/semantics.dart SemanticsConfiguration.attributedIncreasedValue

func (*SemanticsConfiguration) AttributedLabel

func (c *SemanticsConfiguration) AttributedLabel() AttributedString

AttributedLabel is the label with its attributes.

Flutter: semantics/semantics.dart SemanticsConfiguration.attributedLabel

func (*SemanticsConfiguration) AttributedValue

func (c *SemanticsConfiguration) AttributedValue() AttributedString

AttributedValue is the value with its attributes.

Flutter: semantics/semantics.dart SemanticsConfiguration.attributedValue

func (*SemanticsConfiguration) ChildConfigurationsDelegate

func (c *SemanticsConfiguration) ChildConfigurationsDelegate() ChildSemanticsConfigurationsDelegate

ChildConfigurationsDelegate is the delegate that decides how the configurations of the children merge.

Flutter: semantics/semantics.dart SemanticsConfiguration.childConfigurationsDelegate

func (*SemanticsConfiguration) ControlsNodes

func (c *SemanticsConfiguration) ControlsNodes() []string

ControlsNodes are the identifiers of the nodes that this one controls; nil if none.

Flutter: semantics/semantics.dart SemanticsConfiguration.controlsNodes

func (*SemanticsConfiguration) Copy

Copy returns a copy of the configuration. Like Flutter's, it keeps the actions with their handlers but not the getters of the handlers (OnTap and the like), the delegate, or the locales.

Flutter: semantics/semantics.dart SemanticsConfiguration.copy

func (*SemanticsConfiguration) CurrentValueLength

func (c *SemanticsConfiguration) CurrentValueLength() foundation.Opt[int]

CurrentValueLength is the length of the value of a text field.

Flutter: semantics/semantics.dart SemanticsConfiguration.currentValueLength

func (*SemanticsConfiguration) CustomSemanticsActions

func (c *SemanticsConfiguration) CustomSemanticsActions() map[CustomSemanticsAction]VoidCallback

CustomSemanticsActions are the custom actions with their handlers. The map is the configuration's own: changing it changes the configuration.

Flutter: semantics/semantics.dart SemanticsConfiguration.customSemanticsActions

func (*SemanticsConfiguration) DecreasedValue

func (c *SemanticsConfiguration) DecreasedValue() string

DecreasedValue is the text of the value after a decrease.

Flutter: semantics/semantics.dart SemanticsConfiguration.decreasedValue

func (*SemanticsConfiguration) GetActionHandler

GetActionHandler is the handler of the action, or nil.

Flutter: semantics/semantics.dart SemanticsConfiguration.getActionHandler

func (*SemanticsConfiguration) HasBeenAnnotated

func (c *SemanticsConfiguration) HasBeenAnnotated() bool

HasBeenAnnotated is whether any property was set.

Flutter: semantics/semantics.dart SemanticsConfiguration.hasBeenAnnotated

func (*SemanticsConfiguration) HasImplicitScrolling

func (c *SemanticsConfiguration) HasImplicitScrolling() bool

HasImplicitScrolling is whether the node scrolls when a child gets the accessibility focus.

Flutter: semantics/semantics.dart SemanticsConfiguration.hasImplicitScrolling

func (*SemanticsConfiguration) HeadingLevel

func (c *SemanticsConfiguration) HeadingLevel() int

HeadingLevel is the level of a heading, 0 to 6.

Flutter: semantics/semantics.dart SemanticsConfiguration.headingLevel

func (*SemanticsConfiguration) Hint

func (c *SemanticsConfiguration) Hint() string

Hint is the text of the hint.

Flutter: semantics/semantics.dart SemanticsConfiguration.hint

func (*SemanticsConfiguration) HintOverrides

func (c *SemanticsConfiguration) HintOverrides() *SemanticsHintOverrides

HintOverrides are the hints that replace the default hints of tap and long press.

Flutter: semantics/semantics.dart SemanticsConfiguration.hintOverrides

func (*SemanticsConfiguration) HitTestBehavior

func (c *SemanticsConfiguration) HitTestBehavior() ui.SemanticsHitTestBehavior

HitTestBehavior is the hit test behavior.

Flutter: semantics/semantics.dart SemanticsConfiguration.hitTestBehavior

func (*SemanticsConfiguration) Identifier

func (c *SemanticsConfiguration) Identifier() string

Identifier is the identifier for tests.

Flutter: semantics/semantics.dart SemanticsConfiguration.identifier

func (*SemanticsConfiguration) IncreasedValue

func (c *SemanticsConfiguration) IncreasedValue() string

IncreasedValue is the text of the value after an increase.

Flutter: semantics/semantics.dart SemanticsConfiguration.increasedValue

func (*SemanticsConfiguration) IndexInParent

func (c *SemanticsConfiguration) IndexInParent() foundation.Opt[int]

IndexInParent is the index among the children of the parent that scroll.

Flutter: semantics/semantics.dart SemanticsConfiguration.indexInParent

func (*SemanticsConfiguration) InputType

InputType is the input type of a text field.

Flutter: semantics/semantics.dart SemanticsConfiguration.inputType

func (*SemanticsConfiguration) IsButton

func (c *SemanticsConfiguration) IsButton() bool

IsButton is whether the node is a button.

Flutter: semantics/semantics.dart SemanticsConfiguration.isButton

func (*SemanticsConfiguration) IsCheckStateMixed

func (c *SemanticsConfiguration) IsCheckStateMixed() foundation.Opt[bool]

IsCheckStateMixed is whether the check state is mixed; None if it is not checkable.

Flutter: semantics/semantics.dart SemanticsConfiguration.isCheckStateMixed

func (*SemanticsConfiguration) IsChecked

func (c *SemanticsConfiguration) IsChecked() foundation.Opt[bool]

IsChecked is whether the node is checked; None if it is not checkable.

Flutter: semantics/semantics.dart SemanticsConfiguration.isChecked

func (*SemanticsConfiguration) IsCompatibleWith

func (c *SemanticsConfiguration) IsCompatibleWith(other *SemanticsConfiguration) bool

IsCompatibleWith reports whether the configuration can merge with the other one without losing information; nil is compatible.

Flutter: semantics/semantics.dart SemanticsConfiguration.isCompatibleWith

func (*SemanticsConfiguration) IsEnabled

func (c *SemanticsConfiguration) IsEnabled() foundation.Opt[bool]

IsEnabled is whether the node is enabled; None if it has no such state.

Flutter: semantics/semantics.dart SemanticsConfiguration.isEnabled

func (*SemanticsConfiguration) IsExpanded

func (c *SemanticsConfiguration) IsExpanded() foundation.Opt[bool]

IsExpanded is whether an expandable node is expanded; None if it is not expandable.

Flutter: semantics/semantics.dart SemanticsConfiguration.isExpanded

func (*SemanticsConfiguration) IsFocusable

func (c *SemanticsConfiguration) IsFocusable() bool

IsFocusable is whether the node can have the input focus.

Flutter: semantics/semantics.dart SemanticsConfiguration.isFocusable

func (*SemanticsConfiguration) IsFocused

func (c *SemanticsConfiguration) IsFocused() foundation.Opt[bool]

IsFocused is whether the node has the input focus; None if it can not.

Flutter: semantics/semantics.dart SemanticsConfiguration.isFocused

func (*SemanticsConfiguration) IsHeader

func (c *SemanticsConfiguration) IsHeader() bool

IsHeader is whether the node is a header.

Flutter: semantics/semantics.dart SemanticsConfiguration.isHeader

func (*SemanticsConfiguration) IsHidden

func (c *SemanticsConfiguration) IsHidden() bool

IsHidden is whether the node is hidden from the user.

Flutter: semantics/semantics.dart SemanticsConfiguration.isHidden

func (*SemanticsConfiguration) IsImage

func (c *SemanticsConfiguration) IsImage() bool

IsImage is whether the node is an image.

Flutter: semantics/semantics.dart SemanticsConfiguration.isImage

func (*SemanticsConfiguration) IsInMutuallyExclusiveGroup

func (c *SemanticsConfiguration) IsInMutuallyExclusiveGroup() bool

IsInMutuallyExclusiveGroup is whether the node is in a radio group.

Flutter: semantics/semantics.dart SemanticsConfiguration.isInMutuallyExclusiveGroup

func (*SemanticsConfiguration) IsKeyboardKey

func (c *SemanticsConfiguration) IsKeyboardKey() bool

IsKeyboardKey is whether the node is a key of an on screen keyboard.

Flutter: semantics/semantics.dart SemanticsConfiguration.isKeyboardKey

func (c *SemanticsConfiguration) IsLink() bool

IsLink is whether the node is a link.

Flutter: semantics/semantics.dart SemanticsConfiguration.isLink

func (*SemanticsConfiguration) IsMergingSemanticsOfDescendants

func (c *SemanticsConfiguration) IsMergingSemanticsOfDescendants() bool

IsMergingSemanticsOfDescendants is whether the node merges the semantics of its descendants into itself.

Flutter: semantics/semantics.dart SemanticsConfiguration.isMergingSemanticsOfDescendants

func (*SemanticsConfiguration) IsMultiline

func (c *SemanticsConfiguration) IsMultiline() bool

IsMultiline is whether the text field has several lines.

Flutter: semantics/semantics.dart SemanticsConfiguration.isMultiline

func (*SemanticsConfiguration) IsObscured

func (c *SemanticsConfiguration) IsObscured() bool

IsObscured is whether the text is obscured.

Flutter: semantics/semantics.dart SemanticsConfiguration.isObscured

func (*SemanticsConfiguration) IsReadOnly

func (c *SemanticsConfiguration) IsReadOnly() bool

IsReadOnly is whether the text field is read only.

Flutter: semantics/semantics.dart SemanticsConfiguration.isReadOnly

func (*SemanticsConfiguration) IsRequired

func (c *SemanticsConfiguration) IsRequired() foundation.Opt[bool]

IsRequired is whether a form field is required; None if the node is not a field.

Flutter: semantics/semantics.dart SemanticsConfiguration.isRequired

func (*SemanticsConfiguration) IsSelected

func (c *SemanticsConfiguration) IsSelected() bool

IsSelected is whether the node is selected.

Flutter: semantics/semantics.dart SemanticsConfiguration.isSelected

func (*SemanticsConfiguration) IsSemanticBoundary

func (c *SemanticsConfiguration) IsSemanticBoundary() bool

IsSemanticBoundary is whether the object forms a node of its own.

Flutter: semantics/semantics.dart SemanticsConfiguration.isSemanticBoundary

func (*SemanticsConfiguration) IsSlider

func (c *SemanticsConfiguration) IsSlider() bool

IsSlider is whether the node is a slider.

Flutter: semantics/semantics.dart SemanticsConfiguration.isSlider

func (*SemanticsConfiguration) IsTextField

func (c *SemanticsConfiguration) IsTextField() bool

IsTextField is whether the node is a text field.

Flutter: semantics/semantics.dart SemanticsConfiguration.isTextField

func (*SemanticsConfiguration) IsToggled

func (c *SemanticsConfiguration) IsToggled() foundation.Opt[bool]

IsToggled is whether a toggle is on; None if the node is not a toggle.

Flutter: semantics/semantics.dart SemanticsConfiguration.isToggled

func (*SemanticsConfiguration) Label

func (c *SemanticsConfiguration) Label() string

Label is the text of the label.

Flutter: semantics/semantics.dart SemanticsConfiguration.label

func (*SemanticsConfiguration) LinkURL

LinkURL is the URL of a link.

Flutter: semantics/semantics.dart SemanticsConfiguration.linkUrl

func (*SemanticsConfiguration) LiveRegion

func (c *SemanticsConfiguration) LiveRegion() bool

LiveRegion is whether changes of the node are announced.

Flutter: semantics/semantics.dart SemanticsConfiguration.liveRegion

func (*SemanticsConfiguration) LocaleForSubtree

func (c *SemanticsConfiguration) LocaleForSubtree() foundation.Opt[ui.Locale]

LocaleForSubtree is the locale that the node and its subtree use.

Flutter: semantics/semantics.dart SemanticsConfiguration.localeForSubtree

func (*SemanticsConfiguration) MaxValue

MaxValue is the highest value, as text.

Flutter: semantics/semantics.dart SemanticsConfiguration.maxValue

func (*SemanticsConfiguration) MaxValueLength

func (c *SemanticsConfiguration) MaxValueLength() foundation.Opt[int]

MaxValueLength is the longest value of a text field.

Flutter: semantics/semantics.dart SemanticsConfiguration.maxValueLength

func (*SemanticsConfiguration) MinValue

MinValue is the lowest value, as text.

Flutter: semantics/semantics.dart SemanticsConfiguration.minValue

func (*SemanticsConfiguration) NamesRoute

func (c *SemanticsConfiguration) NamesRoute() bool

NamesRoute is whether the node names the route.

Flutter: semantics/semantics.dart SemanticsConfiguration.namesRoute

func (*SemanticsConfiguration) OnCollapse

func (c *SemanticsConfiguration) OnCollapse() VoidCallback

OnCollapse is the handler of the collapse action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onCollapse

func (*SemanticsConfiguration) OnCopy

OnCopy is the handler of the copy action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onCopy

func (*SemanticsConfiguration) OnCut

OnCut is the handler of the cut action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onCut

func (*SemanticsConfiguration) OnDecrease

func (c *SemanticsConfiguration) OnDecrease() VoidCallback

OnDecrease is the handler of the decrease action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onDecrease

func (*SemanticsConfiguration) OnDidGainAccessibilityFocus

func (c *SemanticsConfiguration) OnDidGainAccessibilityFocus() VoidCallback

OnDidGainAccessibilityFocus is the handler of the action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onDidGainAccessibilityFocus

func (*SemanticsConfiguration) OnDidLoseAccessibilityFocus

func (c *SemanticsConfiguration) OnDidLoseAccessibilityFocus() VoidCallback

OnDidLoseAccessibilityFocus is the handler of the action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onDidLoseAccessibilityFocus

func (*SemanticsConfiguration) OnDismiss

func (c *SemanticsConfiguration) OnDismiss() VoidCallback

OnDismiss is the handler of the dismiss action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onDismiss

func (*SemanticsConfiguration) OnExpand

func (c *SemanticsConfiguration) OnExpand() VoidCallback

OnExpand is the handler of the expand action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onExpand

func (*SemanticsConfiguration) OnFocus

func (c *SemanticsConfiguration) OnFocus() VoidCallback

OnFocus is the handler of the focus action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onFocus

func (*SemanticsConfiguration) OnIncrease

func (c *SemanticsConfiguration) OnIncrease() VoidCallback

OnIncrease is the handler of the increase action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onIncrease

func (*SemanticsConfiguration) OnLongPress

func (c *SemanticsConfiguration) OnLongPress() VoidCallback

OnLongPress is the handler of the long press action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onLongPress

func (*SemanticsConfiguration) OnMoveCursorBackwardByCharacter

func (c *SemanticsConfiguration) OnMoveCursorBackwardByCharacter() MoveCursorHandler

OnMoveCursorBackwardByCharacter is the handler of the action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onMoveCursorBackwardByCharacter

func (*SemanticsConfiguration) OnMoveCursorBackwardByWord

func (c *SemanticsConfiguration) OnMoveCursorBackwardByWord() MoveCursorHandler

OnMoveCursorBackwardByWord is the handler of the action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onMoveCursorBackwardByWord

func (*SemanticsConfiguration) OnMoveCursorForwardByCharacter

func (c *SemanticsConfiguration) OnMoveCursorForwardByCharacter() MoveCursorHandler

OnMoveCursorForwardByCharacter is the handler of the action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onMoveCursorForwardByCharacter

func (*SemanticsConfiguration) OnMoveCursorForwardByWord

func (c *SemanticsConfiguration) OnMoveCursorForwardByWord() MoveCursorHandler

OnMoveCursorForwardByWord is the handler of the action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onMoveCursorForwardByWord

func (*SemanticsConfiguration) OnPaste

func (c *SemanticsConfiguration) OnPaste() VoidCallback

OnPaste is the handler of the paste action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onPaste

func (*SemanticsConfiguration) OnScrollDown

func (c *SemanticsConfiguration) OnScrollDown() VoidCallback

OnScrollDown is the handler of the scroll down action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onScrollDown

func (*SemanticsConfiguration) OnScrollLeft

func (c *SemanticsConfiguration) OnScrollLeft() VoidCallback

OnScrollLeft is the handler of the scroll left action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onScrollLeft

func (*SemanticsConfiguration) OnScrollRight

func (c *SemanticsConfiguration) OnScrollRight() VoidCallback

OnScrollRight is the handler of the scroll right action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onScrollRight

func (*SemanticsConfiguration) OnScrollToOffset

func (c *SemanticsConfiguration) OnScrollToOffset() ScrollToOffsetHandler

OnScrollToOffset is the handler of the scroll to offset action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onScrollToOffset

func (*SemanticsConfiguration) OnScrollUp

func (c *SemanticsConfiguration) OnScrollUp() VoidCallback

OnScrollUp is the handler of the scroll up action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onScrollUp

func (*SemanticsConfiguration) OnSetSelection

func (c *SemanticsConfiguration) OnSetSelection() SetSelectionHandler

OnSetSelection is the handler of the set selection action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onSetSelection

func (*SemanticsConfiguration) OnSetText

func (c *SemanticsConfiguration) OnSetText() SetTextHandler

OnSetText is the handler of the set text action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onSetText

func (*SemanticsConfiguration) OnShowOnScreen

func (c *SemanticsConfiguration) OnShowOnScreen() VoidCallback

OnShowOnScreen is the handler of the show on screen action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onShowOnScreen

func (*SemanticsConfiguration) OnTap

OnTap is the handler of the tap action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onTap

func (*SemanticsConfiguration) PlatformViewID

func (c *SemanticsConfiguration) PlatformViewID() foundation.Opt[int]

PlatformViewID is the platform view that the node stands for.

Flutter: semantics/semantics.dart SemanticsConfiguration.platformViewId

func (*SemanticsConfiguration) Role

Role is the role.

Flutter: semantics/semantics.dart SemanticsConfiguration.role

func (*SemanticsConfiguration) ScopesRoute

func (c *SemanticsConfiguration) ScopesRoute() bool

ScopesRoute is whether the node is the root of a route.

Flutter: semantics/semantics.dart SemanticsConfiguration.scopesRoute

func (*SemanticsConfiguration) ScrollChildCount

func (c *SemanticsConfiguration) ScrollChildCount() foundation.Opt[int]

ScrollChildCount is the number of children of a scrollable.

Flutter: semantics/semantics.dart SemanticsConfiguration.scrollChildCount

func (*SemanticsConfiguration) ScrollExtentMax

func (c *SemanticsConfiguration) ScrollExtentMax() foundation.Opt[float64]

ScrollExtentMax is the highest scroll position of a scrollable.

Flutter: semantics/semantics.dart SemanticsConfiguration.scrollExtentMax

func (*SemanticsConfiguration) ScrollExtentMin

func (c *SemanticsConfiguration) ScrollExtentMin() foundation.Opt[float64]

ScrollExtentMin is the lowest scroll position of a scrollable.

Flutter: semantics/semantics.dart SemanticsConfiguration.scrollExtentMin

func (*SemanticsConfiguration) ScrollIndex

func (c *SemanticsConfiguration) ScrollIndex() foundation.Opt[int]

ScrollIndex is the index of the first visible child of a scrollable.

Flutter: semantics/semantics.dart SemanticsConfiguration.scrollIndex

func (*SemanticsConfiguration) ScrollPosition

func (c *SemanticsConfiguration) ScrollPosition() foundation.Opt[float64]

ScrollPosition is the scroll position of a scrollable.

Flutter: semantics/semantics.dart SemanticsConfiguration.scrollPosition

func (*SemanticsConfiguration) SetAccessibilityFocusBlockType

func (c *SemanticsConfiguration) SetAccessibilityFocusBlockType(v AccessibilityFocusBlockType)

SetAccessibilityFocusBlockType sets what the accessibility focus is blocked for, and the flag that says it is blocked.

Flutter: semantics/semantics.dart SemanticsConfiguration.accessibilityFocusBlockType

func (*SemanticsConfiguration) SetAttributedDecreasedValue

func (c *SemanticsConfiguration) SetAttributedDecreasedValue(v AttributedString)

SetAttributedDecreasedValue sets the decreased value with attributes.

Flutter: semantics/semantics.dart SemanticsConfiguration.attributedDecreasedValue

func (*SemanticsConfiguration) SetAttributedHint

func (c *SemanticsConfiguration) SetAttributedHint(v AttributedString)

SetAttributedHint sets the hint with attributes.

Flutter: semantics/semantics.dart SemanticsConfiguration.attributedHint

func (*SemanticsConfiguration) SetAttributedIncreasedValue

func (c *SemanticsConfiguration) SetAttributedIncreasedValue(v AttributedString)

SetAttributedIncreasedValue sets the increased value with attributes.

Flutter: semantics/semantics.dart SemanticsConfiguration.attributedIncreasedValue

func (*SemanticsConfiguration) SetAttributedLabel

func (c *SemanticsConfiguration) SetAttributedLabel(v AttributedString)

SetAttributedLabel sets the label with attributes.

Flutter: semantics/semantics.dart SemanticsConfiguration.attributedLabel

func (*SemanticsConfiguration) SetAttributedValue

func (c *SemanticsConfiguration) SetAttributedValue(v AttributedString)

SetAttributedValue sets the value with attributes.

Flutter: semantics/semantics.dart SemanticsConfiguration.attributedValue

func (*SemanticsConfiguration) SetChildConfigurationsDelegate

func (c *SemanticsConfiguration) SetChildConfigurationsDelegate(v ChildSemanticsConfigurationsDelegate)

SetChildConfigurationsDelegate sets the delegate.

Flutter: semantics/semantics.dart SemanticsConfiguration.childConfigurationsDelegate

func (*SemanticsConfiguration) SetControlsNodes

func (c *SemanticsConfiguration) SetControlsNodes(v []string)

SetControlsNodes sets the controlled nodes.

Flutter: semantics/semantics.dart SemanticsConfiguration.controlsNodes

func (*SemanticsConfiguration) SetCurrentValueLength

func (c *SemanticsConfiguration) SetCurrentValueLength(v foundation.Opt[int])

SetCurrentValueLength sets the length of the value of a text field.

Flutter: semantics/semantics.dart SemanticsConfiguration.currentValueLength

func (*SemanticsConfiguration) SetCustomSemanticsActions

func (c *SemanticsConfiguration) SetCustomSemanticsActions(v map[CustomSemanticsAction]VoidCallback)

SetCustomSemanticsActions replaces the custom actions.

Flutter: semantics/semantics.dart SemanticsConfiguration.customSemanticsActions

func (*SemanticsConfiguration) SetDecreasedValue

func (c *SemanticsConfiguration) SetDecreasedValue(v string)

SetDecreasedValue sets the value after a decrease.

Flutter: semantics/semantics.dart SemanticsConfiguration.decreasedValue

func (*SemanticsConfiguration) SetHasImplicitScrolling

func (c *SemanticsConfiguration) SetHasImplicitScrolling(v bool)

SetHasImplicitScrolling sets whether the node scrolls implicitly.

Flutter: semantics/semantics.dart SemanticsConfiguration.hasImplicitScrolling

func (*SemanticsConfiguration) SetHeadingLevel

func (c *SemanticsConfiguration) SetHeadingLevel(v int)

SetHeadingLevel sets the heading level; in debug builds a level outside 0 to 6 panics with the tag SemanticsHeadingLevelInvalid.

Flutter: semantics/semantics.dart SemanticsConfiguration.headingLevel

func (*SemanticsConfiguration) SetHint

func (c *SemanticsConfiguration) SetHint(v string)

SetHint sets the hint.

Flutter: semantics/semantics.dart SemanticsConfiguration.hint

func (*SemanticsConfiguration) SetHintOverrides

func (c *SemanticsConfiguration) SetHintOverrides(v *SemanticsHintOverrides)

SetHintOverrides sets the hint overrides; nil is ignored.

Flutter: semantics/semantics.dart SemanticsConfiguration.hintOverrides

func (*SemanticsConfiguration) SetHitTestBehavior

func (c *SemanticsConfiguration) SetHitTestBehavior(v ui.SemanticsHitTestBehavior)

SetHitTestBehavior sets the hit test behavior.

Flutter: semantics/semantics.dart SemanticsConfiguration.hitTestBehavior

func (*SemanticsConfiguration) SetIdentifier

func (c *SemanticsConfiguration) SetIdentifier(v string)

SetIdentifier sets the identifier.

Flutter: semantics/semantics.dart SemanticsConfiguration.identifier

func (*SemanticsConfiguration) SetIncreasedValue

func (c *SemanticsConfiguration) SetIncreasedValue(v string)

SetIncreasedValue sets the value after an increase.

Flutter: semantics/semantics.dart SemanticsConfiguration.increasedValue

func (*SemanticsConfiguration) SetIndexInParent

func (c *SemanticsConfiguration) SetIndexInParent(v foundation.Opt[int])

SetIndexInParent sets the index in the parent.

Flutter: semantics/semantics.dart SemanticsConfiguration.indexInParent

func (*SemanticsConfiguration) SetInputType

func (c *SemanticsConfiguration) SetInputType(v ui.SemanticsInputType)

SetInputType sets the input type.

Flutter: semantics/semantics.dart SemanticsConfiguration.inputType

func (*SemanticsConfiguration) SetIsButton

func (c *SemanticsConfiguration) SetIsButton(v bool)

SetIsButton sets whether the node is a button.

Flutter: semantics/semantics.dart SemanticsConfiguration.isButton

func (*SemanticsConfiguration) SetIsCheckStateMixed

func (c *SemanticsConfiguration) SetIsCheckStateMixed(v foundation.Opt[bool])

SetIsCheckStateMixed makes the check state mixed when true.

Flutter: semantics/semantics.dart SemanticsConfiguration.isCheckStateMixed

func (*SemanticsConfiguration) SetIsChecked

func (c *SemanticsConfiguration) SetIsChecked(v foundation.Opt[bool])

SetIsChecked sets whether the node is checked; None leaves the state.

Flutter: semantics/semantics.dart SemanticsConfiguration.isChecked

func (*SemanticsConfiguration) SetIsEnabled

func (c *SemanticsConfiguration) SetIsEnabled(v foundation.Opt[bool])

SetIsEnabled sets whether the node is enabled.

Flutter: semantics/semantics.dart SemanticsConfiguration.isEnabled

func (*SemanticsConfiguration) SetIsExpanded

func (c *SemanticsConfiguration) SetIsExpanded(v foundation.Opt[bool])

SetIsExpanded sets whether the node is expanded.

Flutter: semantics/semantics.dart SemanticsConfiguration.isExpanded

func (*SemanticsConfiguration) SetIsFocusable

func (c *SemanticsConfiguration) SetIsFocusable(v bool)

SetIsFocusable sets whether the node can have the input focus. Flutter deprecates it: set IsFocused.

Flutter: semantics/semantics.dart SemanticsConfiguration.isFocusable

func (*SemanticsConfiguration) SetIsFocused

func (c *SemanticsConfiguration) SetIsFocused(v foundation.Opt[bool])

SetIsFocused sets whether the node has the input focus.

Flutter: semantics/semantics.dart SemanticsConfiguration.isFocused

func (*SemanticsConfiguration) SetIsHeader

func (c *SemanticsConfiguration) SetIsHeader(v bool)

SetIsHeader sets whether the node is a header.

Flutter: semantics/semantics.dart SemanticsConfiguration.isHeader

func (*SemanticsConfiguration) SetIsHidden

func (c *SemanticsConfiguration) SetIsHidden(v bool)

SetIsHidden sets whether the node is hidden from the user.

Flutter: semantics/semantics.dart SemanticsConfiguration.isHidden

func (*SemanticsConfiguration) SetIsImage

func (c *SemanticsConfiguration) SetIsImage(v bool)

SetIsImage sets whether the node is an image.

Flutter: semantics/semantics.dart SemanticsConfiguration.isImage

func (*SemanticsConfiguration) SetIsInMutuallyExclusiveGroup

func (c *SemanticsConfiguration) SetIsInMutuallyExclusiveGroup(v bool)

SetIsInMutuallyExclusiveGroup sets whether the node is in a radio group.

Flutter: semantics/semantics.dart SemanticsConfiguration.isInMutuallyExclusiveGroup

func (*SemanticsConfiguration) SetIsKeyboardKey

func (c *SemanticsConfiguration) SetIsKeyboardKey(v bool)

SetIsKeyboardKey sets whether the node is a key of an on screen keyboard.

Flutter: semantics/semantics.dart SemanticsConfiguration.isKeyboardKey

func (c *SemanticsConfiguration) SetIsLink(v bool)

SetIsLink sets whether the node is a link.

Flutter: semantics/semantics.dart SemanticsConfiguration.isLink

func (*SemanticsConfiguration) SetIsMergingSemanticsOfDescendants

func (c *SemanticsConfiguration) SetIsMergingSemanticsOfDescendants(value bool)

SetIsMergingSemanticsOfDescendants sets whether the node merges its descendants. In debug builds it panics with the tag SemanticsBoundaryRequired if the configuration is not a semantic boundary.

Flutter: semantics/semantics.dart SemanticsConfiguration.isMergingSemanticsOfDescendants

func (*SemanticsConfiguration) SetIsMultiline

func (c *SemanticsConfiguration) SetIsMultiline(v bool)

SetIsMultiline sets whether the text field has several lines.

Flutter: semantics/semantics.dart SemanticsConfiguration.isMultiline

func (*SemanticsConfiguration) SetIsObscured

func (c *SemanticsConfiguration) SetIsObscured(v bool)

SetIsObscured sets whether the text is obscured.

Flutter: semantics/semantics.dart SemanticsConfiguration.isObscured

func (*SemanticsConfiguration) SetIsReadOnly

func (c *SemanticsConfiguration) SetIsReadOnly(v bool)

SetIsReadOnly sets whether the text field is read only.

Flutter: semantics/semantics.dart SemanticsConfiguration.isReadOnly

func (*SemanticsConfiguration) SetIsRequired

func (c *SemanticsConfiguration) SetIsRequired(v foundation.Opt[bool])

SetIsRequired sets whether a form field is required.

Flutter: semantics/semantics.dart SemanticsConfiguration.isRequired

func (*SemanticsConfiguration) SetIsSelected

func (c *SemanticsConfiguration) SetIsSelected(v bool)

SetIsSelected sets whether the node is selected.

Flutter: semantics/semantics.dart SemanticsConfiguration.isSelected

func (*SemanticsConfiguration) SetIsSemanticBoundary

func (c *SemanticsConfiguration) SetIsSemanticBoundary(value bool)

SetIsSemanticBoundary sets whether the object forms a node of its own. In debug builds clearing it while the configuration merges the semantics of its descendants panics with the tag SemanticsBoundaryRequired.

Flutter: semantics/semantics.dart SemanticsConfiguration.isSemanticBoundary

func (*SemanticsConfiguration) SetIsSlider

func (c *SemanticsConfiguration) SetIsSlider(v bool)

SetIsSlider sets whether the node is a slider.

Flutter: semantics/semantics.dart SemanticsConfiguration.isSlider

func (*SemanticsConfiguration) SetIsTextField

func (c *SemanticsConfiguration) SetIsTextField(v bool)

SetIsTextField sets whether the node is a text field.

Flutter: semantics/semantics.dart SemanticsConfiguration.isTextField

func (*SemanticsConfiguration) SetIsToggled

func (c *SemanticsConfiguration) SetIsToggled(v foundation.Opt[bool])

SetIsToggled sets whether a toggle is on.

Flutter: semantics/semantics.dart SemanticsConfiguration.isToggled

func (*SemanticsConfiguration) SetLabel

func (c *SemanticsConfiguration) SetLabel(v string)

SetLabel sets the label.

Flutter: semantics/semantics.dart SemanticsConfiguration.label

func (*SemanticsConfiguration) SetLinkURL

func (c *SemanticsConfiguration) SetLinkURL(v foundation.Opt[string])

SetLinkURL sets the URL of a link.

Flutter: semantics/semantics.dart SemanticsConfiguration.linkUrl

func (*SemanticsConfiguration) SetLiveRegion

func (c *SemanticsConfiguration) SetLiveRegion(v bool)

SetLiveRegion sets whether changes of the node are announced.

Flutter: semantics/semantics.dart SemanticsConfiguration.liveRegion

func (*SemanticsConfiguration) SetLocaleForSubtree

func (c *SemanticsConfiguration) SetLocaleForSubtree(value ui.Locale)

SetLocaleForSubtree sets the locale of the node and its subtree.

Flutter: semantics/semantics.dart SemanticsConfiguration.localeForSubtree

func (*SemanticsConfiguration) SetMaxValue

func (c *SemanticsConfiguration) SetMaxValue(v foundation.Opt[string])

SetMaxValue sets the highest value.

Flutter: semantics/semantics.dart SemanticsConfiguration.maxValue

func (*SemanticsConfiguration) SetMaxValueLength

func (c *SemanticsConfiguration) SetMaxValueLength(v foundation.Opt[int])

SetMaxValueLength sets the longest value of a text field.

Flutter: semantics/semantics.dart SemanticsConfiguration.maxValueLength

func (*SemanticsConfiguration) SetMinValue

func (c *SemanticsConfiguration) SetMinValue(v foundation.Opt[string])

SetMinValue sets the lowest value.

Flutter: semantics/semantics.dart SemanticsConfiguration.minValue

func (*SemanticsConfiguration) SetNamesRoute

func (c *SemanticsConfiguration) SetNamesRoute(v bool)

SetNamesRoute sets whether the node names the route.

Flutter: semantics/semantics.dart SemanticsConfiguration.namesRoute

func (*SemanticsConfiguration) SetOnCollapse

func (c *SemanticsConfiguration) SetOnCollapse(v VoidCallback)

SetOnCollapse sets the handler of the collapse action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onCollapse

func (*SemanticsConfiguration) SetOnCopy

func (c *SemanticsConfiguration) SetOnCopy(v VoidCallback)

SetOnCopy sets the handler of the copy action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onCopy

func (*SemanticsConfiguration) SetOnCut

func (c *SemanticsConfiguration) SetOnCut(v VoidCallback)

SetOnCut sets the handler of the cut action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onCut

func (*SemanticsConfiguration) SetOnDecrease

func (c *SemanticsConfiguration) SetOnDecrease(v VoidCallback)

SetOnDecrease sets the handler of the decrease action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onDecrease

func (*SemanticsConfiguration) SetOnDidGainAccessibilityFocus

func (c *SemanticsConfiguration) SetOnDidGainAccessibilityFocus(v VoidCallback)

SetOnDidGainAccessibilityFocus sets the handler of the action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onDidGainAccessibilityFocus

func (*SemanticsConfiguration) SetOnDidLoseAccessibilityFocus

func (c *SemanticsConfiguration) SetOnDidLoseAccessibilityFocus(v VoidCallback)

SetOnDidLoseAccessibilityFocus sets the handler of the action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onDidLoseAccessibilityFocus

func (*SemanticsConfiguration) SetOnDismiss

func (c *SemanticsConfiguration) SetOnDismiss(v VoidCallback)

SetOnDismiss sets the handler of the dismiss action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onDismiss

func (*SemanticsConfiguration) SetOnExpand

func (c *SemanticsConfiguration) SetOnExpand(v VoidCallback)

SetOnExpand sets the handler of the expand action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onExpand

func (*SemanticsConfiguration) SetOnFocus

func (c *SemanticsConfiguration) SetOnFocus(v VoidCallback)

SetOnFocus sets the handler of the focus action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onFocus

func (*SemanticsConfiguration) SetOnIncrease

func (c *SemanticsConfiguration) SetOnIncrease(v VoidCallback)

SetOnIncrease sets the handler of the increase action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onIncrease

func (*SemanticsConfiguration) SetOnLongPress

func (c *SemanticsConfiguration) SetOnLongPress(v VoidCallback)

SetOnLongPress sets the handler of the long press action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onLongPress

func (*SemanticsConfiguration) SetOnMoveCursorBackwardByCharacter

func (c *SemanticsConfiguration) SetOnMoveCursorBackwardByCharacter(v MoveCursorHandler)

SetOnMoveCursorBackwardByCharacter sets the handler of the action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onMoveCursorBackwardByCharacter

func (*SemanticsConfiguration) SetOnMoveCursorBackwardByWord

func (c *SemanticsConfiguration) SetOnMoveCursorBackwardByWord(v MoveCursorHandler)

SetOnMoveCursorBackwardByWord sets the handler of the action.

Deviation: see SetOnMoveCursorForwardByWord.

Flutter: semantics/semantics.dart SemanticsConfiguration.onMoveCursorBackwardByWord

func (*SemanticsConfiguration) SetOnMoveCursorForwardByCharacter

func (c *SemanticsConfiguration) SetOnMoveCursorForwardByCharacter(v MoveCursorHandler)

SetOnMoveCursorForwardByCharacter sets the handler of the action; its argument is whether the selection extends.

Flutter: semantics/semantics.dart SemanticsConfiguration.onMoveCursorForwardByCharacter

func (*SemanticsConfiguration) SetOnMoveCursorForwardByWord

func (c *SemanticsConfiguration) SetOnMoveCursorForwardByWord(v MoveCursorHandler)

SetOnMoveCursorForwardByWord sets the handler of the action.

Deviation: Flutter stores the handler in the by-character field, a typo; here each setter has its own field (SPEC §12.10).

Flutter: semantics/semantics.dart SemanticsConfiguration.onMoveCursorForwardByWord

func (*SemanticsConfiguration) SetOnPaste

func (c *SemanticsConfiguration) SetOnPaste(v VoidCallback)

SetOnPaste sets the handler of the paste action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onPaste

func (*SemanticsConfiguration) SetOnScrollDown

func (c *SemanticsConfiguration) SetOnScrollDown(v VoidCallback)

SetOnScrollDown sets the handler of the scroll down action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onScrollDown

func (*SemanticsConfiguration) SetOnScrollLeft

func (c *SemanticsConfiguration) SetOnScrollLeft(v VoidCallback)

SetOnScrollLeft sets the handler of the scroll left action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onScrollLeft

func (*SemanticsConfiguration) SetOnScrollRight

func (c *SemanticsConfiguration) SetOnScrollRight(v VoidCallback)

SetOnScrollRight sets the handler of the scroll right action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onScrollRight

func (*SemanticsConfiguration) SetOnScrollToOffset

func (c *SemanticsConfiguration) SetOnScrollToOffset(v ScrollToOffsetHandler)

SetOnScrollToOffset sets the handler of the scroll to offset action. The argument of the action is a []float64 with the offset.

Flutter: semantics/semantics.dart SemanticsConfiguration.onScrollToOffset

func (*SemanticsConfiguration) SetOnScrollUp

func (c *SemanticsConfiguration) SetOnScrollUp(v VoidCallback)

SetOnScrollUp sets the handler of the scroll up action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onScrollUp

func (*SemanticsConfiguration) SetOnSetSelection

func (c *SemanticsConfiguration) SetOnSetSelection(v SetSelectionHandler)

SetOnSetSelection sets the handler of the set selection action. The argument of the action is a map[string]int with "base" and "extent".

Flutter: semantics/semantics.dart SemanticsConfiguration.onSetSelection

func (*SemanticsConfiguration) SetOnSetText

func (c *SemanticsConfiguration) SetOnSetText(v SetTextHandler)

SetOnSetText sets the handler of the set text action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onSetText

func (*SemanticsConfiguration) SetOnShowOnScreen

func (c *SemanticsConfiguration) SetOnShowOnScreen(v VoidCallback)

SetOnShowOnScreen sets the handler of the show on screen action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onShowOnScreen

func (*SemanticsConfiguration) SetOnTap

func (c *SemanticsConfiguration) SetOnTap(v VoidCallback)

SetOnTap sets the handler of the tap action.

Flutter: semantics/semantics.dart SemanticsConfiguration.onTap

func (*SemanticsConfiguration) SetPlatformViewID

func (c *SemanticsConfiguration) SetPlatformViewID(v foundation.Opt[int])

SetPlatformViewID sets the platform view.

Flutter: semantics/semantics.dart SemanticsConfiguration.platformViewId

func (*SemanticsConfiguration) SetRole

func (c *SemanticsConfiguration) SetRole(v ui.SemanticsRole)

SetRole sets the role.

Flutter: semantics/semantics.dart SemanticsConfiguration.role

func (*SemanticsConfiguration) SetScopesRoute

func (c *SemanticsConfiguration) SetScopesRoute(v bool)

SetScopesRoute sets whether the node is the root of a route.

Flutter: semantics/semantics.dart SemanticsConfiguration.scopesRoute

func (*SemanticsConfiguration) SetScrollChildCount

func (c *SemanticsConfiguration) SetScrollChildCount(v foundation.Opt[int])

SetScrollChildCount sets the number of children of a scrollable.

Flutter: semantics/semantics.dart SemanticsConfiguration.scrollChildCount

func (*SemanticsConfiguration) SetScrollExtentMax

func (c *SemanticsConfiguration) SetScrollExtentMax(v float64)

SetScrollExtentMax sets the highest scroll position.

Flutter: semantics/semantics.dart SemanticsConfiguration.scrollExtentMax

func (*SemanticsConfiguration) SetScrollExtentMin

func (c *SemanticsConfiguration) SetScrollExtentMin(v float64)

SetScrollExtentMin sets the lowest scroll position.

Flutter: semantics/semantics.dart SemanticsConfiguration.scrollExtentMin

func (*SemanticsConfiguration) SetScrollIndex

func (c *SemanticsConfiguration) SetScrollIndex(v foundation.Opt[int])

SetScrollIndex sets the index of the first visible child.

Flutter: semantics/semantics.dart SemanticsConfiguration.scrollIndex

func (*SemanticsConfiguration) SetScrollPosition

func (c *SemanticsConfiguration) SetScrollPosition(v float64)

SetScrollPosition sets the scroll position.

Flutter: semantics/semantics.dart SemanticsConfiguration.scrollPosition

func (*SemanticsConfiguration) SetSortKey

func (c *SemanticsConfiguration) SetSortKey(v SemanticsSortKey)

SetSortKey sets the sort key.

Flutter: semantics/semantics.dart SemanticsConfiguration.sortKey

func (*SemanticsConfiguration) SetTextDirection

func (c *SemanticsConfiguration) SetTextDirection(v ui.TextDirection)

SetTextDirection sets the direction of the strings.

Flutter: semantics/semantics.dart SemanticsConfiguration.textDirection

func (*SemanticsConfiguration) SetTextSelection

func (c *SemanticsConfiguration) SetTextSelection(v services.TextSelection)

SetTextSelection sets the selection of a text field.

Flutter: semantics/semantics.dart SemanticsConfiguration.textSelection

func (*SemanticsConfiguration) SetTooltip

func (c *SemanticsConfiguration) SetTooltip(v string)

SetTooltip sets the tooltip.

Flutter: semantics/semantics.dart SemanticsConfiguration.tooltip

func (*SemanticsConfiguration) SetTraversalChildIdentifier

func (c *SemanticsConfiguration) SetTraversalChildIdentifier(v any)

SetTraversalChildIdentifier sets the traversal child identifier.

Flutter: semantics/semantics.dart SemanticsConfiguration.traversalChildIdentifier

func (*SemanticsConfiguration) SetTraversalParentIdentifier

func (c *SemanticsConfiguration) SetTraversalParentIdentifier(v any)

SetTraversalParentIdentifier sets the traversal parent identifier.

Flutter: semantics/semantics.dart SemanticsConfiguration.traversalParentIdentifier

func (*SemanticsConfiguration) SetValidationResult

func (c *SemanticsConfiguration) SetValidationResult(v ui.SemanticsValidationResult)

SetValidationResult sets the validation result.

Flutter: semantics/semantics.dart SemanticsConfiguration.validationResult

func (*SemanticsConfiguration) SetValue

func (c *SemanticsConfiguration) SetValue(v string)

SetValue sets the value.

Flutter: semantics/semantics.dart SemanticsConfiguration.value

func (*SemanticsConfiguration) SortKey

SortKey is the sort key of the node.

Flutter: semantics/semantics.dart SemanticsConfiguration.sortKey

func (*SemanticsConfiguration) TagsChildrenWith

func (c *SemanticsConfiguration) TagsChildrenWith(tag SemanticsTag) bool

TagsChildrenWith is whether the children get the tag.

Flutter: semantics/semantics.dart SemanticsConfiguration.tagsChildrenWith

func (*SemanticsConfiguration) TagsForChildren

func (c *SemanticsConfiguration) TagsForChildren() map[SemanticsTag]struct{}

TagsForChildren are the tags that the node gives to its children.

Flutter: semantics/semantics.dart SemanticsConfiguration.tagsForChildren

func (*SemanticsConfiguration) TextDirection

func (c *SemanticsConfiguration) TextDirection() ui.TextDirection

TextDirection is the direction of the strings.

Flutter: semantics/semantics.dart SemanticsConfiguration.textDirection

func (*SemanticsConfiguration) TextSelection

TextSelection is the selection of a text field.

Flutter: semantics/semantics.dart SemanticsConfiguration.textSelection

func (*SemanticsConfiguration) Tooltip

func (c *SemanticsConfiguration) Tooltip() string

Tooltip is the tooltip.

Flutter: semantics/semantics.dart SemanticsConfiguration.tooltip

func (*SemanticsConfiguration) TraversalChildIdentifier

func (c *SemanticsConfiguration) TraversalChildIdentifier() any

TraversalChildIdentifier ties this node to the node with the same parent identifier.

Flutter: semantics/semantics.dart SemanticsConfiguration.traversalChildIdentifier

func (*SemanticsConfiguration) TraversalParentIdentifier

func (c *SemanticsConfiguration) TraversalParentIdentifier() any

TraversalParentIdentifier ties this node to the nodes with the same child identifier.

Flutter: semantics/semantics.dart SemanticsConfiguration.traversalParentIdentifier

func (*SemanticsConfiguration) ValidationResult

func (c *SemanticsConfiguration) ValidationResult() ui.SemanticsValidationResult

ValidationResult is the validation result.

Flutter: semantics/semantics.dart SemanticsConfiguration.validationResult

func (*SemanticsConfiguration) Value

func (c *SemanticsConfiguration) Value() string

Value is the text of the value.

Flutter: semantics/semantics.dart SemanticsConfiguration.value

type SemanticsData

type SemanticsData struct {
	// FlagsCollection are the flags of the node.
	FlagsCollection ui.SemanticsFlags
	// Actions are the supported actions as a bit field.
	Actions ui.SemanticsAction
	// Identifier is the identifier for tests.
	Identifier string
	// TraversalParentIdentifier and TraversalChildIdentifier tie nodes of
	// different branches into one traversal order; nil if none.
	TraversalParentIdentifier, TraversalChildIdentifier any
	// AttributedLabel, AttributedValue, AttributedIncreasedValue,
	// AttributedDecreasedValue and AttributedHint are the strings of the node.
	AttributedLabel, AttributedValue, AttributedIncreasedValue, AttributedDecreasedValue, AttributedHint AttributedString
	// Tooltip is the tooltip.
	Tooltip string
	// HeadingLevel is 0 to 6; 0 is not a heading.
	HeadingLevel int
	// TextDirection is the direction of the strings; unspecified if unknown.
	TextDirection ui.TextDirection
	// TextSelection is the selection of a text field.
	TextSelection foundation.Opt[services.TextSelection]
	// ScrollChildCount and ScrollIndex describe a scrollable.
	ScrollChildCount, ScrollIndex foundation.Opt[int]
	// ScrollPosition, ScrollExtentMax and ScrollExtentMin describe a scrollable.
	ScrollPosition, ScrollExtentMax, ScrollExtentMin foundation.Opt[float64]
	// PlatformViewID is the platform view that the node stands for.
	PlatformViewID foundation.Opt[int]
	// MaxValueLength and CurrentValueLength are the limits of a text field.
	MaxValueLength, CurrentValueLength foundation.Opt[int]
	// LinkURL is the URL of a link.
	LinkURL foundation.Opt[string]
	// Rect is the rectangle of the node in its own coordinates.
	Rect ui.Rect
	// Tags are the tags of the node; nil if none.
	Tags map[SemanticsTag]struct{}
	// Transform maps the node to its parent; nil is the identity.
	Transform *ui.Matrix4
	// CustomSemanticsActionIDs are the IDs of the custom actions, in order; nil
	// if none.
	CustomSemanticsActionIDs []int
	// Role is the role.
	Role ui.SemanticsRole
	// ControlsNodes are the identifiers of the nodes that this one controls;
	// nil if none.
	ControlsNodes []string
	// ValidationResult is the validation result.
	ValidationResult ui.SemanticsValidationResult
	// HitTestBehavior is the hit test behavior.
	HitTestBehavior ui.SemanticsHitTestBehavior
	// InputType is the input type.
	InputType ui.SemanticsInputType
	// Locale is the locale of the strings.
	Locale foundation.Opt[ui.Locale]
	// MinValue and MaxValue are the limits of the value.
	MinValue, MaxValue foundation.Opt[string]
}

SemanticsData holds the semantics information of a node, with what the nodes merged into it add.

Flutter: semantics/semantics.dart SemanticsData

func NewSemanticsData

func NewSemanticsData(d SemanticsData) *SemanticsData

NewSemanticsData checks the data and returns it. In debug builds it panics with the tag SemanticsDataInvalid if a string has no text direction, the heading level is not 0 to 6, or a link URL is set on a node that is not a link.

Flutter: semantics/semantics.dart SemanticsData.new

func (*SemanticsData) DebugDescribeChildren

func (d *SemanticsData) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren is empty.

func (*SemanticsData) DebugFillProperties

func (d *SemanticsData) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the rectangle, the transform, the actions, the flags, the strings and the rest.

Flutter: semantics/semantics.dart SemanticsData.debugFillProperties

func (*SemanticsData) DecreasedValue

func (d *SemanticsData) DecreasedValue() string

DecreasedValue is the text of the decreased value.

Flutter: semantics/semantics.dart SemanticsData.decreasedValue

func (*SemanticsData) Equal

func (d *SemanticsData) Equal(o *SemanticsData) bool

Equal is Dart's ==: all the fields are equal.

Flutter: semantics/semantics.dart SemanticsData.==

func (*SemanticsData) HasAction

func (d *SemanticsData) HasAction(action ui.SemanticsAction) bool

HasAction is whether the action is supported.

Flutter: semantics/semantics.dart SemanticsData.hasAction

func (*SemanticsData) Hint

func (d *SemanticsData) Hint() string

Hint is the text of the hint.

Flutter: semantics/semantics.dart SemanticsData.hint

func (*SemanticsData) IncreasedValue

func (d *SemanticsData) IncreasedValue() string

IncreasedValue is the text of the increased value.

Flutter: semantics/semantics.dart SemanticsData.increasedValue

func (*SemanticsData) Label

func (d *SemanticsData) Label() string

Label is the text of the label.

Flutter: semantics/semantics.dart SemanticsData.label

func (*SemanticsData) String

func (d *SemanticsData) String() string

String describes the data on one line.

Flutter: foundation/diagnostics.dart Diagnosticable.toString

func (*SemanticsData) ToStringShort

func (d *SemanticsData) ToStringShort() string

ToStringShort is "SemanticsData".

Flutter: semantics/semantics.dart SemanticsData.toStringShort

func (*SemanticsData) Value

func (d *SemanticsData) Value() string

Value is the text of the value.

Flutter: semantics/semantics.dart SemanticsData.value

type SemanticsEvent

type SemanticsEvent interface {
	// Type is the type of the event, such as "announce".
	//
	// Flutter: semantics/semantics_event.dart SemanticsEvent.type
	Type() string
	// GetDataMap is the data of the event.
	//
	// Flutter: semantics/semantics_event.dart SemanticsEvent.getDataMap
	GetDataMap() map[string]any
	// ToMap is the message that Flutter sends on its accessibility channel.
	//
	// Flutter: semantics/semantics_event.dart SemanticsEvent.toMap
	ToMap(nodeID foundation.Opt[int]) map[string]any
}

SemanticsEvent is an event that the framework sends to the platform about a node, such as an announcement.

Flutter: semantics/semantics_event.dart SemanticsEvent

type SemanticsHandle

type SemanticsHandle struct {
	// contains filtered or unexported fields
}

SemanticsHandle is a request for semantics. While at least one handle is open the framework produces a semantics tree. Dispose the handle when done.

Flutter: semantics/binding.dart SemanticsHandle

func (*SemanticsHandle) Dispose

func (h *SemanticsHandle) Dispose()

Dispose releases the request. In debug builds disposing a handle twice panics with the tag SemanticsHandleDisposedTwice.

Flutter: semantics/binding.dart SemanticsHandle.dispose

type SemanticsHintOverrides

type SemanticsHintOverrides struct {
	// OnTapHint is the hint of the tap action; "" for none.
	OnTapHint string
	// OnLongPressHint is the hint of the long press action; "" for none.
	OnLongPressHint string
}

SemanticsHintOverrides are the hints that replace the default ones of the tap and long press actions.

Flutter: semantics/semantics.dart SemanticsHintOverrides

func (*SemanticsHintOverrides) DebugDescribeChildren

func (h *SemanticsHintOverrides) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren is empty.

func (*SemanticsHintOverrides) DebugFillProperties

DebugFillProperties adds the hints.

Flutter: semantics/semantics.dart SemanticsHintOverrides.debugFillProperties

func (*SemanticsHintOverrides) Equal

Equal is Dart's ==.

Flutter: semantics/semantics.dart SemanticsHintOverrides.==

func (*SemanticsHintOverrides) IsNotEmpty

func (h *SemanticsHintOverrides) IsNotEmpty() bool

IsNotEmpty is whether any hint is set.

Flutter: semantics/semantics.dart SemanticsHintOverrides.isNotEmpty

type SemanticsLabelBuilder

type SemanticsLabelBuilder struct {
	// contains filtered or unexported fields
}

SemanticsLabelBuilder builds a label from parts that may have a direction of their own, joined by a separator.

Flutter: semantics/semantics.dart SemanticsLabelBuilder

func NewSemanticsLabelBuilder

func NewSemanticsLabelBuilder(opts ...SemanticsLabelBuilderOpts) *SemanticsLabelBuilder

NewSemanticsLabelBuilder creates a builder.

Flutter: semantics/semantics.dart SemanticsLabelBuilder.new

func (*SemanticsLabelBuilder) AddPart

func (b *SemanticsLabelBuilder) AddPart(label string, direction ...ui.TextDirection)

AddPart adds a part; empty parts are ignored. The direction is the one of the part, or unspecified to use the one of the builder.

Flutter: semantics/semantics.dart SemanticsLabelBuilder.addPart

func (*SemanticsLabelBuilder) Build

func (b *SemanticsLabelBuilder) Build() string

Build joins the parts.

Flutter: semantics/semantics.dart SemanticsLabelBuilder.build

func (*SemanticsLabelBuilder) Clear

func (b *SemanticsLabelBuilder) Clear()

Clear removes the parts.

Flutter: semantics/semantics.dart SemanticsLabelBuilder.clear

func (*SemanticsLabelBuilder) IsEmpty

func (b *SemanticsLabelBuilder) IsEmpty() bool

IsEmpty is whether there is no part.

Flutter: semantics/semantics.dart SemanticsLabelBuilder.isEmpty

func (*SemanticsLabelBuilder) Length

func (b *SemanticsLabelBuilder) Length() int

Length is the number of parts.

Flutter: semantics/semantics.dart SemanticsLabelBuilder.length

type SemanticsLabelBuilderOpts

type SemanticsLabelBuilderOpts struct {
	// Separator is put between the parts; the default is a space.
	Separator foundation.Opt[string]
	// TextDirection is the direction of the label; parts of another direction
	// are wrapped in directional characters.
	TextDirection ui.TextDirection
}

SemanticsLabelBuilderOpts are the optional parameters of NewSemanticsLabelBuilder.

Flutter: semantics/semantics.dart SemanticsLabelBuilder.new

type SemanticsNode

type SemanticsNode struct {
	// Key identifies the node among its siblings, for the tests.
	//
	// Flutter: semantics/semantics.dart SemanticsNode.key
	Key foundation.Key
	// ParentSemanticsClipRect is the clip of the semantics of the parent in the
	// coordinates of this node.
	//
	// Flutter: semantics/semantics.dart SemanticsNode.parentSemanticsClipRect
	ParentSemanticsClipRect foundation.Opt[ui.Rect]
	// ParentPaintClipRect is the clip of the painting of the parent in the
	// coordinates of this node.
	//
	// Flutter: semantics/semantics.dart SemanticsNode.parentPaintClipRect
	ParentPaintClipRect foundation.Opt[ui.Rect]
	// IndexInParent is the index of the node among the children that scroll.
	//
	// Flutter: semantics/semantics.dart SemanticsNode.indexInParent
	IndexInParent foundation.Opt[int]
	// Tags are the tags of the node.
	//
	// Flutter: semantics/semantics.dart SemanticsNode.tags
	Tags map[SemanticsTag]struct{}
	// contains filtered or unexported fields
}

SemanticsNode is a node of the semantics tree, which the engine hands to an assistive technology. The semantics owner updates the nodes, and the render objects fill them from their configurations.

Flutter: semantics/semantics.dart SemanticsNode

func NewSemanticsNode

func NewSemanticsNode(opts ...SemanticsNodeOpts) *SemanticsNode

NewSemanticsNode creates a node with a new ID.

Flutter: semantics/semantics.dart SemanticsNode.new

func NewSemanticsNodeRoot

func NewSemanticsNodeRoot(owner *SemanticsOwner, opts ...SemanticsNodeOpts) *SemanticsNode

NewSemanticsNodeRoot creates the root node, which has the ID 0, and attaches it to the owner.

Flutter: semantics/semantics.dart SemanticsNode.root

func (*SemanticsNode) AreUserActionsBlocked

func (n *SemanticsNode) AreUserActionsBlocked() bool

AreUserActionsBlocked is whether the user actions of the node are blocked.

Flutter: semantics/semantics.dart SemanticsNode.areUserActionsBlocked

func (*SemanticsNode) Attach

func (n *SemanticsNode) Attach(owner *SemanticsOwner)

Attach makes the node, and its descendants, belong to the owner. A node whose ID is taken gets a new one.

Flutter: semantics/semantics.dart SemanticsNode.attach

func (*SemanticsNode) Attached

func (n *SemanticsNode) Attached() bool

Attached is whether the node is attached to an owner.

Flutter: semantics/semantics.dart SemanticsNode.attached

func (*SemanticsNode) AttributedDecreasedValue

func (n *SemanticsNode) AttributedDecreasedValue() AttributedString

AttributedDecreasedValue is the decreased value with its attributes.

Flutter: semantics/semantics.dart SemanticsNode.attributedDecreasedValue

func (*SemanticsNode) AttributedHint

func (n *SemanticsNode) AttributedHint() AttributedString

AttributedHint is the hint with its attributes.

Flutter: semantics/semantics.dart SemanticsNode.attributedHint

func (*SemanticsNode) AttributedIncreasedValue

func (n *SemanticsNode) AttributedIncreasedValue() AttributedString

AttributedIncreasedValue is the increased value with its attributes.

Flutter: semantics/semantics.dart SemanticsNode.attributedIncreasedValue

func (*SemanticsNode) AttributedLabel

func (n *SemanticsNode) AttributedLabel() AttributedString

AttributedLabel is the label with its attributes.

Flutter: semantics/semantics.dart SemanticsNode.attributedLabel

func (*SemanticsNode) AttributedValue

func (n *SemanticsNode) AttributedValue() AttributedString

AttributedValue is the value with its attributes.

Flutter: semantics/semantics.dart SemanticsNode.attributedValue

func (*SemanticsNode) ChildrenCount

func (n *SemanticsNode) ChildrenCount() int

ChildrenCount is the number of children.

Flutter: semantics/semantics.dart SemanticsNode.childrenCount

func (*SemanticsNode) ChildrenCountInTraversalOrder

func (n *SemanticsNode) ChildrenCountInTraversalOrder() int

ChildrenCountInTraversalOrder is the number of children in traversal order, which differs when traversal identifiers move nodes.

Flutter: semantics/semantics.dart SemanticsNode.childrenCountInTraversalOrder

func (*SemanticsNode) ControlsNodes

func (n *SemanticsNode) ControlsNodes() []string

ControlsNodes are the identifiers of the nodes this one controls.

Flutter: semantics/semantics.dart SemanticsNode.controlsNodes

func (*SemanticsNode) CurrentValueLength

func (n *SemanticsNode) CurrentValueLength() foundation.Opt[int]

CurrentValueLength is the length of the value of a text field.

Flutter: semantics/semantics.dart SemanticsNode.currentValueLength

func (*SemanticsNode) DebugDescribeChildren

func (n *SemanticsNode) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren describes the children in traversal order.

Flutter: semantics/semantics.dart SemanticsNode.debugDescribeChildren

func (*SemanticsNode) DebugDescribeChildrenInOrder

func (n *SemanticsNode) DebugDescribeChildrenInOrder(order DebugSemanticsDumpOrder) []foundation.DiagnosticsNode

DebugDescribeChildrenInOrder describes the children in the order.

Flutter: semantics/semantics.dart SemanticsNode.debugDescribeChildren

func (*SemanticsNode) DebugFillProperties

func (n *SemanticsNode) DebugFillProperties(p *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the state of the node.

Flutter: semantics/semantics.dart SemanticsNode.debugFillProperties

func (*SemanticsNode) DebugIsDirty

func (n *SemanticsNode) DebugIsDirty() foundation.Opt[bool]

DebugIsDirty is whether the node has changes that were not sent yet (debug builds only; None in release builds).

Flutter: semantics/semantics.dart SemanticsNode.debugIsDirty

func (*SemanticsNode) DebugListChildrenInOrder

func (n *SemanticsNode) DebugListChildrenInOrder(order DebugSemanticsDumpOrder) []*SemanticsNode

DebugListChildrenInOrder lists the children in the order.

Flutter: semantics/semantics.dart SemanticsNode.debugListChildrenInOrder

func (*SemanticsNode) DecreasedValue

func (n *SemanticsNode) DecreasedValue() string

DecreasedValue is the text of the value after a decrease.

Flutter: semantics/semantics.dart SemanticsNode.decreasedValue

func (*SemanticsNode) Depth

func (n *SemanticsNode) Depth() int

Depth is the distance from the root.

Flutter: semantics/semantics.dart SemanticsNode.depth

func (*SemanticsNode) Detach

func (n *SemanticsNode) Detach()

Detach removes the node, and its descendants, from the owner.

Flutter: semantics/semantics.dart SemanticsNode.detach

func (*SemanticsNode) FlagsCollection

func (n *SemanticsNode) FlagsCollection() ui.SemanticsFlags

FlagsCollection are the flags of the node.

Flutter: semantics/semantics.dart SemanticsNode.flagsCollection

func (*SemanticsNode) GetSemanticsData

func (n *SemanticsNode) GetSemanticsData() *SemanticsData

GetSemanticsData is the data of the node, with the information of the nodes that are merged into it.

Flutter: semantics/semantics.dart SemanticsNode.getSemanticsData

func (*SemanticsNode) HasChildren

func (n *SemanticsNode) HasChildren() bool

HasChildren is whether the node has children.

Flutter: semantics/semantics.dart SemanticsNode.hasChildren

func (*SemanticsNode) HeadingLevel

func (n *SemanticsNode) HeadingLevel() int

HeadingLevel is the heading level, 0 to 6.

Flutter: semantics/semantics.dart SemanticsNode.headingLevel

func (*SemanticsNode) Hint

func (n *SemanticsNode) Hint() string

Hint is the text of the hint.

Flutter: semantics/semantics.dart SemanticsNode.hint

func (*SemanticsNode) HintOverrides

func (n *SemanticsNode) HintOverrides() *SemanticsHintOverrides

HintOverrides are the hint overrides.

Flutter: semantics/semantics.dart SemanticsNode.hintOverrides

func (*SemanticsNode) HitTestBehavior

func (n *SemanticsNode) HitTestBehavior() ui.SemanticsHitTestBehavior

HitTestBehavior is the hit test behavior.

Flutter: semantics/semantics.dart SemanticsNode.hitTestBehavior

func (*SemanticsNode) ID

func (n *SemanticsNode) ID() int

ID is the ID of the node; the engine addresses the node with it.

Flutter: semantics/semantics.dart SemanticsNode.id

func (*SemanticsNode) Identifier

func (n *SemanticsNode) Identifier() string

Identifier is the identifier for tests.

Flutter: semantics/semantics.dart SemanticsNode.identifier

func (*SemanticsNode) IncreasedValue

func (n *SemanticsNode) IncreasedValue() string

IncreasedValue is the text of the value after an increase.

Flutter: semantics/semantics.dart SemanticsNode.increasedValue

func (*SemanticsNode) InputType

func (n *SemanticsNode) InputType() ui.SemanticsInputType

InputType is the input type.

Flutter: semantics/semantics.dart SemanticsNode.inputType

func (*SemanticsNode) IsInvisible

func (n *SemanticsNode) IsInvisible() bool

IsInvisible is whether the node is not on screen: its rectangle is empty or its transform zero, and it is not merged into its parent.

Flutter: semantics/semantics.dart SemanticsNode.isInvisible

func (*SemanticsNode) IsMergedIntoParent

func (n *SemanticsNode) IsMergedIntoParent() bool

IsMergedIntoParent is whether the node is part of the node of an ancestor.

Flutter: semantics/semantics.dart SemanticsNode.isMergedIntoParent

func (*SemanticsNode) IsMultiline

func (n *SemanticsNode) IsMultiline() bool

IsMultiline is whether the text field has several lines.

Flutter: semantics/semantics.dart SemanticsNode.isMultiline

func (*SemanticsNode) IsPartOfNodeMerging

func (n *SemanticsNode) IsPartOfNodeMerging() bool

IsPartOfNodeMerging is whether the node merges its descendants or is merged into its parent.

Flutter: semantics/semantics.dart SemanticsNode.isPartOfNodeMerging

func (*SemanticsNode) IsTagged

func (n *SemanticsNode) IsTagged(tag SemanticsTag) bool

IsTagged is whether the node has the tag.

Flutter: semantics/semantics.dart SemanticsNode.isTagged

func (*SemanticsNode) Label

func (n *SemanticsNode) Label() string

Label is the text of the label.

Flutter: semantics/semantics.dart SemanticsNode.label

func (*SemanticsNode) LinkURL

func (n *SemanticsNode) LinkURL() foundation.Opt[string]

LinkURL is the URL of a link.

Flutter: semantics/semantics.dart SemanticsNode.linkUrl

func (*SemanticsNode) MaxValue

func (n *SemanticsNode) MaxValue() foundation.Opt[string]

MaxValue is the highest value.

Flutter: semantics/semantics.dart SemanticsNode.maxValue

func (*SemanticsNode) MaxValueLength

func (n *SemanticsNode) MaxValueLength() foundation.Opt[int]

MaxValueLength is the longest value of a text field.

Flutter: semantics/semantics.dart SemanticsNode.maxValueLength

func (*SemanticsNode) MergeAllDescendantsIntoThisNode

func (n *SemanticsNode) MergeAllDescendantsIntoThisNode() bool

MergeAllDescendantsIntoThisNode is whether the node merges its descendants.

Flutter: semantics/semantics.dart SemanticsNode.mergeAllDescendantsIntoThisNode

func (*SemanticsNode) MinValue

func (n *SemanticsNode) MinValue() foundation.Opt[string]

MinValue is the lowest value.

Flutter: semantics/semantics.dart SemanticsNode.minValue

func (*SemanticsNode) Owner

func (n *SemanticsNode) Owner() *SemanticsOwner

Owner is the owner of the node, or nil if it is not attached.

Flutter: semantics/semantics.dart SemanticsNode.owner

func (*SemanticsNode) Parent

func (n *SemanticsNode) Parent() *SemanticsNode

Parent is the parent node, or nil.

Flutter: semantics/semantics.dart SemanticsNode.parent

func (*SemanticsNode) PlatformViewID

func (n *SemanticsNode) PlatformViewID() foundation.Opt[int]

PlatformViewID is the platform view the node stands for.

Flutter: semantics/semantics.dart SemanticsNode.platformViewId

func (*SemanticsNode) Rect

func (n *SemanticsNode) Rect() ui.Rect

Rect is the rectangle of the node in its own coordinates.

Flutter: semantics/semantics.dart SemanticsNode.rect

func (*SemanticsNode) Role

func (n *SemanticsNode) Role() ui.SemanticsRole

Role is the role.

Flutter: semantics/semantics.dart SemanticsNode.role

func (*SemanticsNode) ScrollChildCount

func (n *SemanticsNode) ScrollChildCount() foundation.Opt[int]

ScrollChildCount is the number of children of a scrollable.

Flutter: semantics/semantics.dart SemanticsNode.scrollChildCount

func (*SemanticsNode) ScrollExtentMax

func (n *SemanticsNode) ScrollExtentMax() foundation.Opt[float64]

ScrollExtentMax is the highest scroll position.

Flutter: semantics/semantics.dart SemanticsNode.scrollExtentMax

func (*SemanticsNode) ScrollExtentMin

func (n *SemanticsNode) ScrollExtentMin() foundation.Opt[float64]

ScrollExtentMin is the lowest scroll position.

Flutter: semantics/semantics.dart SemanticsNode.scrollExtentMin

func (*SemanticsNode) ScrollIndex

func (n *SemanticsNode) ScrollIndex() foundation.Opt[int]

ScrollIndex is the index of the first visible child of a scrollable.

Flutter: semantics/semantics.dart SemanticsNode.scrollIndex

func (*SemanticsNode) ScrollPosition

func (n *SemanticsNode) ScrollPosition() foundation.Opt[float64]

ScrollPosition is the scroll position.

Flutter: semantics/semantics.dart SemanticsNode.scrollPosition

func (*SemanticsNode) SendEvent

func (n *SemanticsNode) SendEvent(event SemanticsEvent)

SendEvent sends the event about the node to the platform; it does nothing if the node is not attached.

Flutter: semantics/semantics.dart SemanticsNode.sendEvent

func (*SemanticsNode) SetAreUserActionsBlocked

func (n *SemanticsNode) SetAreUserActionsBlocked(value bool)

SetAreUserActionsBlocked sets whether the user actions are blocked.

Flutter: semantics/semantics.dart SemanticsNode.areUserActionsBlocked

func (*SemanticsNode) SetIsMergedIntoParent

func (n *SemanticsNode) SetIsMergedIntoParent(value bool)

SetIsMergedIntoParent sets whether the node is merged into its parent.

Flutter: semantics/semantics.dart SemanticsNode.isMergedIntoParent

func (*SemanticsNode) SetRect

func (n *SemanticsNode) SetRect(value ui.Rect)

SetRect sets the rectangle. In debug builds a rectangle that is not finite panics with the tag SemanticsRectNotFinite.

Flutter: semantics/semantics.dart SemanticsNode.rect

func (*SemanticsNode) SetTransform

func (n *SemanticsNode) SetTransform(value *ui.Matrix4)

SetTransform sets the transform; the identity is stored as nil.

Flutter: semantics/semantics.dart SemanticsNode.transform

func (*SemanticsNode) SortKey

func (n *SemanticsNode) SortKey() SemanticsSortKey

SortKey is the sort key.

Flutter: semantics/semantics.dart SemanticsNode.sortKey

func (*SemanticsNode) String

func (n *SemanticsNode) String() string

String describes the node on one line.

func (*SemanticsNode) TextDirection

func (n *SemanticsNode) TextDirection() ui.TextDirection

TextDirection is the direction of the strings.

Flutter: semantics/semantics.dart SemanticsNode.textDirection

func (*SemanticsNode) TextSelection

func (n *SemanticsNode) TextSelection() foundation.Opt[services.TextSelection]

TextSelection is the selection of a text field.

Flutter: semantics/semantics.dart SemanticsNode.textSelection

func (*SemanticsNode) ToDiagnosticsNode

ToDiagnosticsNode is the diagnostics node of the node, in traversal order.

Flutter: semantics/semantics.dart SemanticsNode.toDiagnosticsNode

func (*SemanticsNode) ToDiagnosticsNodeWithOrder

ToDiagnosticsNodeWithOrder is the diagnostics node, listing the children in the order. The style defaults to sparse.

Flutter: semantics/semantics.dart SemanticsNode.toDiagnosticsNode

func (*SemanticsNode) ToStringDeep

func (n *SemanticsNode) ToStringDeep(opts ...SemanticsToStringDeepOpts) string

ToStringDeep is a dump of the node and its descendants.

Flutter: semantics/semantics.dart SemanticsNode.toStringDeep

func (*SemanticsNode) ToStringShort

func (n *SemanticsNode) ToStringShort() string

ToStringShort is "SemanticsNode#id".

Flutter: semantics/semantics.dart SemanticsNode.toStringShort

func (*SemanticsNode) Tooltip

func (n *SemanticsNode) Tooltip() string

Tooltip is the tooltip.

Flutter: semantics/semantics.dart SemanticsNode.tooltip

func (*SemanticsNode) Transform

func (n *SemanticsNode) Transform() *ui.Matrix4

Transform is the transform from the coordinates of the node to those of its parent; nil is the identity.

Flutter: semantics/semantics.dart SemanticsNode.transform

func (*SemanticsNode) TraversalChildIdentifier

func (n *SemanticsNode) TraversalChildIdentifier() any

TraversalChildIdentifier is the traversal child identifier.

Flutter: semantics/semantics.dart SemanticsNode.traversalChildIdentifier

func (*SemanticsNode) TraversalParent

func (n *SemanticsNode) TraversalParent() *SemanticsNode

TraversalParent is the traversal parent, or the parent.

Flutter: semantics/semantics.dart SemanticsNode.traversalParent

func (*SemanticsNode) TraversalParentIdentifier

func (n *SemanticsNode) TraversalParentIdentifier() any

TraversalParentIdentifier is the traversal parent identifier.

Flutter: semantics/semantics.dart SemanticsNode.traversalParentIdentifier

func (*SemanticsNode) UpdateWith

func (n *SemanticsNode) UpdateWith(config *SemanticsConfiguration, childrenInInversePaintOrder []*SemanticsNode)

UpdateWith gives the node the properties of the configuration (the empty configuration if nil) and the children, which are in inverse paint order.

Flutter: semantics/semantics.dart SemanticsNode.updateWith

func (*SemanticsNode) ValidationResult

func (n *SemanticsNode) ValidationResult() ui.SemanticsValidationResult

ValidationResult is the validation result.

Flutter: semantics/semantics.dart SemanticsNode.validationResult

func (*SemanticsNode) Value

func (n *SemanticsNode) Value() string

Value is the text of the value.

Flutter: semantics/semantics.dart SemanticsNode.value

func (*SemanticsNode) VisitChildren

func (n *SemanticsNode) VisitChildren(visitor SemanticsNodeVisitor)

VisitChildren calls the visitor on the children until it returns false.

Flutter: semantics/semantics.dart SemanticsNode.visitChildren

type SemanticsNodeOpts

type SemanticsNodeOpts struct {
	// Key identifies the node among its siblings.
	Key foundation.Key
	// ShowOnScreen is called when an assistive technology asks to show the node
	// and no handler of the configuration does it.
	ShowOnScreen VoidCallback
}

SemanticsNodeOpts are the optional parameters of NewSemanticsNode.

Flutter: semantics/semantics.dart SemanticsNode.new

type SemanticsNodeVisitor

type SemanticsNodeVisitor func(node *SemanticsNode) bool

SemanticsNodeVisitor visits a node; it returns false to stop the walk.

Flutter: semantics/semantics.dart SemanticsNodeVisitor

type SemanticsOwner

type SemanticsOwner struct {
	foundation.ChangeNotifier
	// contains filtered or unexported fields
}

SemanticsOwner manages a semantics tree: it knows the nodes, collects the ones that changed, and sends the update to the engine. It is a Listenable that notifies after each update.

Flutter: semantics/semantics.dart SemanticsOwner

func NewSemanticsOwner

func NewSemanticsOwner(onSemanticsUpdate SemanticsUpdateCallback, opts ...SemanticsOwnerOpts) *SemanticsOwner

NewSemanticsOwner creates an owner that gives its updates to the callback.

Flutter: semantics/semantics.dart SemanticsOwner.new

func (*SemanticsOwner) Dispose

func (o *SemanticsOwner) Dispose()

Dispose forgets the nodes.

Flutter: semantics/semantics.dart SemanticsOwner.dispose

func (*SemanticsOwner) GetSemanticsNode

func (o *SemanticsOwner) GetSemanticsNode(id int) *SemanticsNode

GetSemanticsNode is the node with the ID, or nil.

Flutter: semantics/semantics.dart SemanticsOwner.getSemanticsNode

func (*SemanticsOwner) PerformAction

func (o *SemanticsOwner) PerformAction(id int, action ui.SemanticsAction, args any)

PerformAction performs the action on the node with the ID. A merged node passes it to the descendant that handles it. For showOnScreen, a node without a handler uses the callback it was created with.

Flutter: semantics/semantics.dart SemanticsOwner.performAction

func (*SemanticsOwner) PerformActionAt

func (o *SemanticsOwner) PerformActionAt(position ui.Offset, action ui.SemanticsAction, args any)

PerformActionAt performs the action on the node at the position, in the coordinates of the root.

Flutter: semantics/semantics.dart SemanticsOwner.performActionAt

func (*SemanticsOwner) RootSemanticsNode

func (o *SemanticsOwner) RootSemanticsNode() *SemanticsNode

RootSemanticsNode is the root of the tree, the node with the ID 0, or nil.

Flutter: semantics/semantics.dart SemanticsOwner.rootSemanticsNode

func (*SemanticsOwner) SendSemanticsUpdate

func (o *SemanticsOwner) SendSemanticsUpdate()

SendSemanticsUpdate sends the changes since the last update to the callback and notifies the listeners. In debug builds it panics with the tag SemanticsInvisibleNodes if the tree has an invisible node.

Flutter: semantics/semantics.dart SemanticsOwner.sendSemanticsUpdate

func (*SemanticsOwner) String

func (o *SemanticsOwner) String() string

String is "SemanticsOwner#hash".

type SemanticsOwnerOpts

type SemanticsOwnerOpts struct {
	// OnSendEvent receives the events that nodes send to the platform, as the
	// maps that Flutter sends on its accessibility channel.
	OnSendEvent func(event map[string]any)
}

SemanticsOwnerOpts are the optional parameters of NewSemanticsOwner.

Flutter: semantics/semantics.dart SemanticsOwner.new

type SemanticsProperties

type SemanticsProperties struct {
	// Enabled, Checked, Mixed, Expanded, Toggled, Selected, Button, Link,
	// Header, TextField, Slider, KeyboardKey, ReadOnly, Focused, Focusable,
	// InMutuallyExclusiveGroup, Hidden, Obscured, Multiline, ScopesRoute,
	// NamesRoute, Image, LiveRegion and IsRequired set the flags of the node.
	Enabled, Checked, Mixed, Expanded, Selected, Toggled, Button, Link, Header, TextField, Slider, KeyboardKey, ReadOnly foundation.Opt[bool]
	// Focusable is deprecated in Flutter: use Focused.
	Focusable, Focused, InMutuallyExclusiveGroup, Hidden, Obscured, Multiline, ScopesRoute, NamesRoute, Image, LiveRegion foundation.Opt[bool]
	// IsRequired is whether a form field is required.
	IsRequired foundation.Opt[bool]
	// LinkURL is the URL of a link; Link must be true.
	LinkURL foundation.Opt[string]
	// HeadingLevel is 1 to 6.
	HeadingLevel foundation.Opt[int]
	// AccessibilityFocusBlockType is what the accessibility focus is blocked for.
	AccessibilityFocusBlockType foundation.Opt[AccessibilityFocusBlockType]
	// MaxValueLength and CurrentValueLength are the limits of a text field.
	MaxValueLength, CurrentValueLength foundation.Opt[int]
	// Identifier is the identifier for tests.
	Identifier foundation.Opt[string]
	// TraversalParentIdentifier and TraversalChildIdentifier tie nodes of
	// different branches into one traversal order.
	TraversalParentIdentifier, TraversalChildIdentifier any
	// Label, Value, IncreasedValue, DecreasedValue and Hint are the strings;
	// the Attributed ones have attributes and replace them. Setting both a
	// string and its attributed version is an error.
	Label, Value, IncreasedValue, DecreasedValue, Hint                                                   foundation.Opt[string]
	AttributedLabel, AttributedValue, AttributedIncreasedValue, AttributedDecreasedValue, AttributedHint *AttributedString
	// Tooltip is the tooltip.
	Tooltip foundation.Opt[string]
	// HintOverrides replace the default hints of the tap and long press.
	HintOverrides *SemanticsHintOverrides
	// TextDirection is the direction of the strings.
	TextDirection ui.TextDirection
	// SortKey orders the node among its siblings for traversal.
	SortKey SemanticsSortKey
	// TagForChildren is the tag that the node gives to its children.
	TagForChildren foundation.Opt[SemanticsTag]
	// Role is the role.
	Role foundation.Opt[ui.SemanticsRole]
	// ControlsNodes are the identifiers of the nodes that this one controls.
	ControlsNodes []string
	// InputType is the input type of a text field.
	InputType foundation.Opt[ui.SemanticsInputType]
	// ValidationResult is the validation result.
	ValidationResult ui.SemanticsValidationResult
	// HitTestBehavior is the hit test behavior.
	HitTestBehavior foundation.Opt[ui.SemanticsHitTestBehavior]
	// The handlers of the actions; nil leaves the action out.
	OnTap, OnLongPress, OnScrollLeft, OnScrollRight, OnScrollUp, OnScrollDown, OnIncrease, OnDecrease, OnCopy, OnCut, OnPaste VoidCallback
	// OnMoveCursorForwardByCharacter and the three others move the cursor.
	OnMoveCursorForwardByCharacter, OnMoveCursorBackwardByCharacter, OnMoveCursorForwardByWord, OnMoveCursorBackwardByWord MoveCursorHandler
	// OnSetSelection sets the selection of a text field.
	OnSetSelection SetSelectionHandler
	// OnSetText replaces the text of a text field.
	OnSetText SetTextHandler
	// OnDidGainAccessibilityFocus, OnDidLoseAccessibilityFocus, OnFocus,
	// OnDismiss, OnExpand and OnCollapse are the handlers of the other actions.
	OnDidGainAccessibilityFocus, OnDidLoseAccessibilityFocus, OnFocus, OnDismiss, OnExpand, OnCollapse VoidCallback
	// CustomSemanticsActions are the custom actions with their handlers.
	CustomSemanticsActions map[CustomSemanticsAction]VoidCallback
	// MinValue and MaxValue are the limits of the value, as text.
	MinValue, MaxValue foundation.Opt[string]
}

SemanticsProperties is the semantics information that a Semantics widget gives to its render object. A field that is not set leaves the property alone.

Flutter: semantics/semantics.dart SemanticsProperties

func NewSemanticsProperties

func NewSemanticsProperties(p SemanticsProperties) *SemanticsProperties

NewSemanticsProperties checks the properties and returns them. In debug builds it panics with the tag SemanticsPropertiesInvalid if both a string and its attributed version are set, the heading level is not 1 to 6, or a link URL is set without Link.

Flutter: semantics/semantics.dart SemanticsProperties.new

func (*SemanticsProperties) DebugDescribeChildren

func (p *SemanticsProperties) DebugDescribeChildren() []foundation.DiagnosticsNode

DebugDescribeChildren is empty.

func (*SemanticsProperties) DebugFillProperties

func (p *SemanticsProperties) DebugFillProperties(b *foundation.DiagnosticPropertiesBuilder)

DebugFillProperties adds the properties that are set.

Flutter: semantics/semantics.dart SemanticsProperties.debugFillProperties

func (*SemanticsProperties) ToStringShort

func (p *SemanticsProperties) ToStringShort() string

ToStringShort is "SemanticsProperties".

type SemanticsSortKey

type SemanticsSortKey interface {
	foundation.Diagnosticable
	// Name is the name of the key; keys with different names are ordered by
	// name, a key without a name comes first.
	//
	// Flutter: semantics/semantics.dart SemanticsSortKey.name
	Name() foundation.Opt[string]
	// DoCompare compares to a key of the same type that has the same name.
	//
	// Flutter: semantics/semantics.dart SemanticsSortKey.doCompare
	DoCompare(other SemanticsSortKey) int
}

SemanticsSortKey orders the nodes of a parent for accessibility traversal. Keys can only be compared to keys of the same type. Embed SemanticsSortKeyBase for the name.

Flutter: semantics/semantics.dart SemanticsSortKey

type SemanticsSortKeyBase

type SemanticsSortKeyBase struct {
	// contains filtered or unexported fields
}

SemanticsSortKeyBase holds the name of a sort key.

Flutter: semantics/semantics.dart SemanticsSortKey

func NewSemanticsSortKeyBase

func NewSemanticsSortKeyBase(name foundation.Opt[string]) SemanticsSortKeyBase

NewSemanticsSortKeyBase creates the base with a name, which may be None.

Flutter: semantics/semantics.dart SemanticsSortKey.new

func (SemanticsSortKeyBase) DebugFillBase

DebugFillBase adds the name.

Flutter: semantics/semantics.dart SemanticsSortKey.debugFillProperties

func (SemanticsSortKeyBase) Name

Name is the name of the key.

type SemanticsTag

type SemanticsTag struct {
	// contains filtered or unexported fields
}

SemanticsTag is a tag that a node gives to its children, which a parent can use to find them. Tags with the same name are equal, like Dart's constant tags.

Flutter: semantics/semantics.dart SemanticsTag

func NewSemanticsTag

func NewSemanticsTag(name string) SemanticsTag

NewSemanticsTag creates a tag with the name.

Flutter: semantics/semantics.dart SemanticsTag.new

func (SemanticsTag) Name

func (t SemanticsTag) Name() string

Name is the name of the tag.

Flutter: semantics/semantics.dart SemanticsTag.name

func (SemanticsTag) String

func (t SemanticsTag) String() string

String is "SemanticsTag(name)".

Flutter: semantics/semantics.dart SemanticsTag.toString

type SemanticsToStringDeepOpts

type SemanticsToStringDeepOpts struct {
	foundation.ToStringDeepOpts
	// ChildOrder is the order of the children; the default is traversal order.
	ChildOrder DebugSemanticsDumpOrder
}

SemanticsToStringDeepOpts are the optional parameters of SemanticsNode.ToStringDeep.

Flutter: semantics/semantics.dart SemanticsNode.toStringDeep

type SemanticsUpdateCallback

type SemanticsUpdateCallback func(update *ui.SemanticsUpdate)

SemanticsUpdateCallback receives the update that the owner builds.

Flutter: semantics/semantics.dart SemanticsUpdateCallback

type SetSelectionHandler

type SetSelectionHandler func(selection services.TextSelection)

SetSelectionHandler sets the selection of a text field.

Flutter: semantics/semantics.dart SetSelectionHandler

type SetTextHandler

type SetTextHandler func(text string)

SetTextHandler replaces the text of a text field.

Flutter: semantics/semantics.dart SetTextHandler

type TapSemanticEvent

type TapSemanticEvent struct {
	// contains filtered or unexported fields
}

TapSemanticEvent says that a node was tapped.

Flutter: semantics/semantics_event.dart TapSemanticEvent

func NewTapSemanticEvent

func NewTapSemanticEvent() *TapSemanticEvent

NewTapSemanticEvent creates the event.

Flutter: semantics/semantics_event.dart TapSemanticEvent.new

func (*TapSemanticEvent) GetDataMap

func (e *TapSemanticEvent) GetDataMap() map[string]any

GetDataMap is empty.

Flutter: semantics/semantics_event.dart TapSemanticEvent.getDataMap

func (*TapSemanticEvent) ToMap

func (e *TapSemanticEvent) ToMap(nodeID foundation.Opt[int]) map[string]any

ToMap is the message of the event.

func (TapSemanticEvent) Type

func (b TapSemanticEvent) Type() string

type TooltipSemanticsEvent

type TooltipSemanticsEvent struct {

	// Message is the text of the tooltip.
	Message string
	// contains filtered or unexported fields
}

TooltipSemanticsEvent says that a tooltip was shown.

Flutter: semantics/semantics_event.dart TooltipSemanticsEvent

func NewTooltipSemanticsEvent

func NewTooltipSemanticsEvent(message string) *TooltipSemanticsEvent

NewTooltipSemanticsEvent creates the event.

Flutter: semantics/semantics_event.dart TooltipSemanticsEvent.new

func (*TooltipSemanticsEvent) GetDataMap

func (e *TooltipSemanticsEvent) GetDataMap() map[string]any

GetDataMap is the data of the event.

Flutter: semantics/semantics_event.dart TooltipSemanticsEvent.getDataMap

func (*TooltipSemanticsEvent) ToMap

func (e *TooltipSemanticsEvent) ToMap(nodeID foundation.Opt[int]) map[string]any

ToMap is the message of the event.

func (TooltipSemanticsEvent) Type

func (b TooltipSemanticsEvent) Type() string

type VoidCallback

type VoidCallback = func()

VoidCallback is a function without parameters or result.

Flutter: dart:ui VoidCallback

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL