addBreadcrumb method

void addBreadcrumb(
  1. Breadcrumb crumb, {
  2. dynamic hint,
})

Adds a breacrumb to the current Scope

Implementation

void addBreadcrumb(Breadcrumb crumb, {dynamic hint}) {
  if (!_isEnabled) {
    _options.logger(
      SentryLevel.warning,
      "Instance is disabled and this 'addBreadcrumb' call is a no-op.",
    );
  } else {
    final item = _peek();
    item.scope.addBreadcrumb(crumb, hint: hint);
  }
}