multiple_result library

Classes

Error<S, E>
Error Result.
Result<S, E>
Base Result class
Success<S, E>
Success Result.
Unit
Used instead of void as a return statement for a function when no value is to be returned.

Constants

unit → const Unit
Used instead of void as a return statement for a function when no value is to be returned.

Typedefs

ErrorCallback<W, E> = W Function(E error)
ResultOf<S, E> = Result<S, E>
Alias for Result
SuccessCallback<W, S> = W Function(S success)

Exceptions / Errors

SuccessResultNotFoundException<S, E>
Thrown when getting the S type when none is available.