withBreadcrumbs method

Err<T> withBreadcrumbs(
  1. List<String> breadcrumbs
)

Returns a copy of this Err with the given breadcrumbs (replacing any existing breadcrumbs). Used internally by .named(label).

Implementation

@pragma('vm:prefer-inline')
Err<T> withBreadcrumbs(List<String> breadcrumbs) {
  return Err<T>(
    value,
    statusCode: statusCode.orNull(),
    stackTrace: stackTrace,
    breadcrumbs: breadcrumbs,
  );
}