ISpectFilter class

Composite filter combining log-type-key, runtime type, and search criteria.

All criteria are combined with logical OR: a log passes if any active criterion matches.

Implemented types

Constructors

ISpectFilter({Iterable<Type> types = const [], Iterable<String> logTypeKeys = const [], String? searchQuery})

Properties

filters List<Filter<ISpectLogData>>
Active filters materialized as a list (cached).
latefinal
hashCode int
The hash code for this object.
no setterinherited
logTypeKeys Set<String>
Read-only access to the configured log keys.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchQuery String?
The configured search query, if any.
no setter
types Set<Type>
Read-only access to the configured runtime types.
latefinal

Methods

apply(ISpectLogData item) bool
Returns true if the item matches the filter condition.
override
copyWith({List<Type>? types, List<String>? logTypeKeys, String? searchQuery}) ISpectFilter
Returns a new instance with updated criteria. null parameters preserve existing values.
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