TreeSearchMatch class
Represents the details of a search operation on a tree for a given node.
This class contains information about whether a node is a match for the search predicate, the number of nodes in the subtree rooted at the node, and the number of nodes in the subtree that match the search predicate.
See also:
- TreeSearchResult, which holds all matches of a search operation on a tree.
- TreeController.search, which traverses a tree looking for nodes that match the given predicate.
- Mixed in types
Constructors
- TreeSearchMatch({bool isDirectMatch = true, int subtreeNodeCount = 0, int subtreeMatchCount = 0})
-
Creates a TreeSearchMatch.
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- isDirectMatch → bool
-
Whether the node itself is a direct match for the search predicate.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtreeMatchCount → int
-
The number of nodes in the subtree rooted at the node, excluding the root
itself, that match the search predicate.
final
- subtreeNodeCount → int
-
The number of nodes in the subtree rooted at the node, excluding the root
itself.
final
Methods
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringShort(
) → String -
A brief description of this object, usually just the runtimeType and the
hashCode.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override