transf<R extends Object> method
Transforms the Outcome's generic type from T to R.
Uses the transformer function noFutures if provided, otherwise
attempts a direct cast.
Implementation
@override
@pragma('vm:prefer-inline')
Sync<R> transf<R extends Object>([@noFutures R Function(T e)? noFutures]) {
// `Result.transf` already absorbs callback throws into an `Err`, so we
// can wrap the result directly.
return Sync.result(value.transf<R>(noFutures));
}