BloomBreadcrumb class

A structured breadcrumb recording a user action, network call, or state mutation.

Breadcrumbs provide chronological context immediately preceding an error or crash.

Example:

final crumb = BloomBreadcrumb(
  category: 'auth',
  message: 'User tapped login button',
  level: BloomBreadcrumbLevel.info,
);

Constructors

BloomBreadcrumb({required String category, required String message, BloomBreadcrumbLevel level = BloomBreadcrumbLevel.info, DateTime? timestamp, Map<String, dynamic>? data})
Creates a BloomBreadcrumb record.
BloomBreadcrumb.fromJson(Map<String, dynamic> json)
Constructs a BloomBreadcrumb from a JSON json map.
factory

Properties

category String
Category label (e.g. 'ui', 'navigation', 'http', 'state').
final
data Map<String, dynamic>?
Optional contextual data key-value map.
final
hashCode int
The hash code for this object.
no setterinherited
level BloomBreadcrumbLevel
Severity level of the breadcrumb.
final
message String
Human-readable message or description.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp DateTime
UTC timestamp when the breadcrumb was recorded.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes breadcrumb to a JSON map.
toString() String
A string representation of this object.
override

Operators

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