SemanticsFinder class abstract
A base class for creating finders that search the semantics tree.
- Inheritance
-
- Object
- FinderBase<
SemanticsNode> - SemanticsFinder
Constructors
- SemanticsFinder(FlutterView? view)
-
Creates a new SemanticsFinder that will search within the given
view
or within all views ifview
is null.
Properties
-
allCandidates
→ Iterable<
SemanticsNode> -
Returns all of the items that will be considered by this finder.
no setteroverride
-
first
→ FinderBase<
SemanticsNode> -
Returns a variant of this finder that only matches the first item
found by this finder.
no setterinherited
-
found
→ FinderResult<
SemanticsNode> -
The results of the latest evaluate or tryEvaluate call.
no setterinherited
- hasFound → bool
-
Whether or not this finder has any results in found.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
last
→ FinderBase<
SemanticsNode> -
Returns a variant of this finder that only matches the last item
found by this finder.
no setterinherited
-
roots
→ Iterable<
SemanticsNode> -
Returns the root SemanticsNodes of all the semantics trees that this
finder will search.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- view → FlutterView?
-
The FlutterView whose semantics tree this finder will search.
final
Methods
-
at(
int index) → FinderBase< SemanticsNode> -
Returns a variant of this finder that only matches the item at the
given index found by this finder.
inherited
-
describeMatch(
Plurality plurality) → String -
Describes zero, one, or more candidates that match the requirements of a
finder.
inherited
-
evaluate(
) → FinderResult< SemanticsNode> -
Searches a set of candidates for those that meet the requirements set by
this finder and returns the result of that search.
inherited
-
findInCandidates(
Iterable< SemanticsNode> candidates) → Iterable<SemanticsNode> -
Returns all the items in the given list that match this
finder's requirements.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
Resets all state of this FinderBase.
inherited
-
runCached(
VoidCallback run) → void -
Runs the given callback using cached results.
inherited
-
toString(
{bool describeSelf = false}) → String -
A string representation of this finder or its results.
inherited
-
tryEvaluate(
) → bool -
Searches a set of candidates for those that meet the requirements set by
this finder and returns whether the search found any matching candidates.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited