Descendant class
A Flutter Driver finder that finds a descendant 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
-
- Object
- SerializableFinder
- Descendant
Constructors
- Descendant({required SerializableFinder of, required SerializableFinder matching, bool matchRoot = false, bool firstMatchOnly = false})
-
Creates a descendant 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 descendant matching
matching
will be returned.final - hashCode → int
-
The hash code for this object.
no setterinherited
- matching → SerializableFinder
-
Only a descendant 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 descendant 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) → Descendant - Deserializes the finder from JSON generated by serialize.