onResult method

Future<Result<T>> onResult(
  1. dynamic f(
    1. Result<T>
    )
)

Calls f(this) with side effect and return this as is.

Implementation

Future<Result<T>> onResult(Function(Result<T>) f) {
  return then((resultT) {
    f(resultT);
    return this;
  });
}