GetSemanticsId class

A Flutter driver command that retrieves a semantics id using a specified finder.

This command requires assertions to be enabled on the device.

If the object returned by the finder does not have its own semantics node, then the semantics node of the first ancestor is returned instead.

Throws an error if a finder returns multiple objects or if there are no semantics nodes.

Semantics must be enabled to use this method, either using a platform specific shell command or FlutterDriver.setSemantics.

Inheritance

Constructors

GetSemanticsId(SerializableFinder finder, {Duration timeout})
Creates a command which finds a Widget and then looks up the semantic id.
GetSemanticsId.deserialize(Map<String, String> json)
Creates a command from a JSON map.

Properties

kind String
Identifies the type of the command object and of the handler.
read-only, override
finder SerializableFinder
Locates the object or objects targeted by this command.
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
requiresRootWidgetAttached bool
Whether this command requires the widget tree to be initialized before the command may be run. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
timeout Duration
The maximum amount of time to wait for the command to complete. [...]
final, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
serialize() Map<String, String>
This method is meant to be overridden if data in addition to finder is serialized to JSON. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited