ErrorTrackingConfig class
Error tracking configuration
Constructors
-
ErrorTrackingConfig({bool enabled = true, String environment = 'development', String? release, Future<
void> onError(Object error, StackTrace stack, Map<String, dynamic> context)?, Future<void> onLog(String message, ErrorSeverity severity)?, double sampleRate = 1.0, bool enablePerformanceTracking = true, bool enableBreadcrumbs = true, int maxBreadcrumbs = 100}) -
const
Properties
- enableBreadcrumbs → bool
-
Enable breadcrumbs
final
- enabled → bool
-
Enable error tracking
final
- enablePerformanceTracking → bool
-
Enable performance tracking
final
- environment → String
-
Environment (development, staging, production)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxBreadcrumbs → int
-
Max breadcrumbs
final
-
onError
→ Future<
void> Function(Object error, StackTrace stack, Map<String, dynamic> context)? -
Custom error handler
final
-
onLog
→ Future<
void> Function(String message, ErrorSeverity severity)? -
Custom log handler
final
- release → String?
-
Release version
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sampleRate → double
-
Sample rate (0.0 to 1.0)
final
Methods
-
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