descendant method
- required SerializableFinder of,
- required SerializableFinder matching,
- bool matchRoot = false,
- bool firstMatchOnly = false,
Finds the widget that is an descendant of the of
parameter and that
matches the matching
parameter.
If the matchRoot
argument is true then the widget specified by of
will
be considered for a match. The argument defaults to false.
If firstMatchOnly
is true then only the first descendant matching
matching
will be returned. Defaults to false.
Implementation
SerializableFinder descendant({
required SerializableFinder of,
required SerializableFinder matching,
bool matchRoot = false,
bool firstMatchOnly = false,
}) => Descendant(of: of, matching: matching, matchRoot: matchRoot, firstMatchOnly: firstMatchOnly);