StatusCodeFilter<T> class

Passes only events whose HTTP status code satisfies predicate.

Works with any event type T by extracting the status code via statusCodeExtractor.

Inheritance

Constructors

StatusCodeFilter({required bool predicate(int), required int statusCodeExtractor(T)})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
predicate → bool Function(int)
Returns true for status codes that should be logged.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCodeExtractor → int Function(T)
Extracts the HTTP status code from the event value.
final

Methods

apply(T value) → bool
Returns true if value should be logged.
override
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