ISpectFilter class
Composite filter combining log-type-key, runtime type, and search criteria.
The matching criteria are combined with logical OR: a log passes if any active criterion matches. excludedLogTypeKeys is a veto instead - a log whose key is excluded is rejected regardless of the other criteria.
- Implemented types
Constructors
-
ISpectFilter({Iterable<
Type> types = const [], Iterable<String> logTypeKeys = const [], Iterable<String> excludedLogTypeKeys = const [], String? searchQuery, DiagnosticResourceLimits resourceLimits = DiagnosticResourceLimits.balanced})
Properties
-
excludedLogTypeKeys
→ Set<
String> -
Read-only access to the vetoed log keys.
latefinal
-
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
- resourceLimits → DiagnosticResourceLimits
-
final
- 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
trueif the item matches the filter condition.override -
copyWith(
{List< Type> ? types, List<String> ? logTypeKeys, Iterable<String> ? excludedLogTypeKeys, String? searchQuery, DiagnosticResourceLimits? resourceLimits}) → ISpectFilter -
Returns a new instance with updated criteria.
nullparameters 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
-
vetoesKey(
String? key) → bool -
Whether an entry with
keyis rejected before any other criterion runs.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited