transfErr<R extends Object> method
Transforms the Err's generic type from T to R while preserving the
contained error, original stackTrace, statusCode and breadcrumbs.
Implementation
@pragma('vm:prefer-inline')
Err<R> transfErr<R extends Object>() {
return Err(
value,
statusCode: statusCode.orNull(),
stackTrace: stackTrace,
breadcrumbs: breadcrumbs,
);
}