Ancestor class

A Flutter Driver finder that finds an ancestor of of that matches matching.

If the matchRoot argument is true, then the widget specified by of will be considered for a match. The argument defaults to false.

Inheritance

Constructors

Ancestor({@required SerializableFinder of, @required SerializableFinder matching, bool matchRoot: false, bool firstMatchOnly: false})
Creates an ancestor finder.
const

Properties

finderType String
Identifies the type of finder to be used by the driver extension.
read-only, override
firstMatchOnly bool
If true then only the first ancestor matching matching will be returned.
final
matching SerializableFinder
Only an ancestor of of matching this finder will be found.
final
matchRoot bool
Whether the widget matching of will be considered for a match.
final
of SerializableFinder
The finder specifying the widget of which the ancestor is to be found.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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

Static Methods

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