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
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