tryCatchK<S, C, A, L, R> function
StateReaderTaskEither<S, C, L, R> Function(A value)
tryCatchK<S, C, A, L, R>(
- FutureOr<
R> task(- A value
- L onError(
- dynamic err,
- StackTrace stackTrace
A variant of tryCatch that accepts an external parameter.
Implementation
StateReaderTaskEither<S, C, L, R> Function(A value) tryCatchK<S, C, A, L, R>(
FutureOr<R> Function(A value) task,
L Function(dynamic err, StackTrace stackTrace) onError,
) =>
(a) => tryCatch(
() => task(a),
onError,
);