BySemanticsLabel class Null safety

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.
read-only, override
hashCode int
The hash code for this object. [...]
read-only, inherited
label Pattern
A Pattern matching the label of a SemanticsNode. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
serialize() Map<String, String>
Serializes common fields to JSON. [...]
override
toString() String
Returns 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.