thenOr<R extends Object?> method
FutureOr<R>
thenOr<R extends Object?>(
- TSyncOrAsyncMapper<
T, R> callback, { - void onError(
- Object e
Maps a synchronous or asynchronous value to another.
Implementation
FutureOr<R> thenOr<R extends Object?>(
TSyncOrAsyncMapper<T, R> callback, {
void Function(Object e)? onError,
}) {
return mapSyncOrAsync<T, R>(
this,
callback,
onError: onError,
);
}