SearchResult class

Class to represent a search result

Constructors

SearchResult({required List<String> path, required String key, required dynamic value, required MatchType matchType})
const

Properties

hashCode int
The hash code for this object.
no setteroverride
key String
final
matchType MatchType
final
path List<String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value → dynamic
final

Methods

findInPath(bool condition(String segment)) String?
Get the last segment of the path that matches a condition
hasInPath(String key) bool
Check if the path contains a specific key
matchesPattern(bool matcher(List<String> path)) bool
Check if the path matches a specific pattern using a callback
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override