flatMap<R> method
Chains two Deferred values in sequence,
using the result of callback f
to determine the next value.
Implementation
Deferred<R> flatMap<R>(
Deferred<R> Function(T result) f,
) {
return when(
success: (data) => f(data),
error: (error, stackTrace) => _Error<R>(error, stackTrace),
inProgress: () => _InProgress<R>(),
idle: () => _Idle<R>(),
);
}