Breadcrumb constructor

Breadcrumb({
  1. String? message,
  2. DateTime? timestamp,
  3. String? category,
  4. Map<String, dynamic>? data,
  5. SentryLevel? level,
  6. String? type,
  7. Map<String, dynamic>? unknown,
})

Creates a breadcrumb that can be attached to an SentryEvent.

Implementation

Breadcrumb({
  this.message,
  DateTime? timestamp,
  this.category,
  this.data,
  SentryLevel? level,
  this.type,
  this.unknown,
})  : timestamp = timestamp ?? getUtcDateTime(),
      level = level ?? SentryLevel.info;