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.
no setteroverride
firstMatchOnly bool
If true then only the first ancestor matching matching will be returned.
final
hashCode int
The hash code for this object.
no setterinherited
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
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, DeserializeFinderFactory finderFactory) Ancestor
Deserializes the finder from JSON generated by serialize.