addBreadcrumb method

Future<void> addBreadcrumb(
  1. Breadcrumb breadcrumb, {
  2. Hint? hint,
})

Adds a breadcrumb to the breadcrumbs queue

Implementation

Future<void> addBreadcrumb(Breadcrumb breadcrumb, {Hint? hint}) async {
  final addedBreadcrumb = _addBreadCrumbSync(breadcrumb, hint ?? Hint());
  if (addedBreadcrumb != null) {
    await _callScopeObservers((scopeObserver) async =>
        await scopeObserver.addBreadcrumb(addedBreadcrumb));
  }
}