BaseEvent class

Base implementation of Event.

Represents a generic event in the system, with core attributes:

  • message: Description or details about the event.
  • severity: Importance or level of the event (e.g., info, warning, error).
  • tag: Optional label to categorize the event.
  • metadata: Optional map with extra data related to the event.
  • breadcrumbs: Optional list of contextual actions or states leading up to the event.
  • timestamp: When the event occurred.
  • fingerPrint: Unique identifier for the event, useful for grouping or deduplication.
Implemented types
Implementers
Available extensions

Constructors

BaseEvent({required String message, Severity severity = Severity.info, Map<String, dynamic>? metadata, String? tag, List<Map<String, dynamic>>? breadcrumbs, DateTime? timestamp})
BaseEvent.fromJson(String source)
factory
BaseEvent.fromMap(Map<String, dynamic> map)
factory

Properties

getter/setter pairoverride
fingerPrint ↔ String
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
message → String
final
metadata ↔ Map<String, dynamic>?
getter/setter pairoverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
severity → Severity
final
tag → String?
final
timestamp ↔ DateTime
getter/setter pair

Methods

calculateFingerprint() → void
override
getContentToString() → String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
preloadEvent() → void

Available on Event, provided by the PreloadExtensions extension

prettyPrinter() → String
override
shouldReport(int index) → bool
override
toJson() → String
override
toMap() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
override

Operators

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