ClientConfig class

Client configuration for the bug reporting system.

Constructors

ClientConfig({required String environment, List<ContextProvider> baseProviders = const [], List<ContextProvider> additionalProviders = const [], List<Sanitizer> sanitizers = const [], List<EventTransform> transforms = const [], Policy policy = const Policy(), List<Reporter> reporters = const [], int maxBreadcrumbs = 100})
Aggregates configuration for the bug reporting pipeline.
const

Properties

additionalProviders List<ContextProvider>
Additional providers (often user/session/network); may include manual-only ones.
final
baseProviders List<ContextProvider>
Always-on providers (should be lightweight).
final
environment String
Logical environment label (e.g., "dev", "staging", "prod").
final
hashCode int
The hash code for this object.
no setterinherited
maxBreadcrumbs int
Max breadcrumbs to keep in memory (ring buffer).
final
policy Policy
Reporting policy configuration.
final
reporters List<Reporter>
Reporter pipeline (fan-out via CompositeReporter).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sanitizers List<Sanitizer>
Sanitizers applied to the serialized event map before delivery/outbox.
final
transforms List<EventTransform>
Event transforms applied before sanitization.
final

Methods

applyTransforms(ReportEvent event) ReportEvent
Applies transforms in order, returning the transformed event.
buildPipeline() Reporter
Builds the fan-out pipeline (CompositeReporter).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sanitize(ReportEvent event) Map<String, dynamic>
Produces a fully sanitized payload map from an event.
toString() String
A string representation of this object.
inherited

Operators

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