BySemanticsLabel class

A Flutter Driver finder that finds widgets by semantic label.

If the label property is a String, the finder will try to find an exact match. If it is a RegExp, it will return true for RegExp.hasMatch.

Inheritance

Constructors

BySemanticsLabel(Pattern label)
Creates a semantic label finder given the label.
const

Properties

finderType String
Identifies the type of finder to be used by the driver extension.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
label Pattern
A Pattern matching the label of a SemanticsNode.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Map<String, String>
Serializes common fields to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

deserialize(Map<String, String> json) BySemanticsLabel
Deserializes the finder from JSON generated by serialize.