ResultX<S> extension

on

Methods

linkWithState(dynamic onData(Result<S> e), {dynamic onSuccess(S e)?, dynamic onError(String error)?}) → Future<Result<S>>

Available on Future<Result<S>>, provided by the ResultX extension

when({dynamic onStart()?, required dynamic onSuccess(S e)?, dynamic onError(String error)?, dynamic onDone()?, dynamic onLoading(bool isLoading)?}) → Future<Result<S>>

Available on Future<Result<S>>, provided by the ResultX extension

whenFailure(dynamic onError(String error)) → Future

Available on Future<Result<S>>, provided by the ResultX extension

whenSuccess(dynamic onSuccess(S value)) → Future

Available on Future<Result<S>>, provided by the ResultX extension