QueryToken class

Constructors

QueryToken({required bool isExclusion, required String? field, required String? operator, required String value})
Creates a QueryToken representing a single search requirement.

Properties

durationUs double?
If field is a duration field, this holds the parsed time in microseconds.
final
field String?
The targeted field for this token (e.g., 'dur', 'name', 'widget'). If null, matches against name, category, and all metadata.
final
hashCode int
The hash code for this object.
no setterinherited
isExclusion bool
Whether this token should exclude matching events (starts with '-').
final
isSmartCase bool
Optimization: whether value contains any uppercase letters (Smart Case).
final
operator String?
The comparison operator, used for duration fields (e.g., '>', '<', '>=').
final
regex RegExp?
If value is wrapped in slashes (e.g. /foo/), this holds the compiled RegExp.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
The raw value to match or parse.
final

Methods

matches(TraceSpan span) bool
Evaluates whether the given span satisfies this query token.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

parseQuery(String query) List<QueryToken>