fpdart
library
Constants
-
unit
→ const Unit
-
Used instead of
void
as a return statement for a function when no value is to be returned.
Functions
-
constF<A>(A a)
→ A Function(dynamic b)
-
constf a
is a unary function which evaluates to a
for all inputs.
-
identity<T>(T a)
→ T
-
Returns the given
a
.
-
identityFuture<T>(T a)
→ Future<T>
-
Returns the given
a
, wrapped in Future.value
.
Typedefs
-
DoFunctionEffect<E, L, A>
= FutureOr<A> Function(EffectGen<E, L> $)
-
-
EffectGen<E, L>
= ({FutureOr<A> Function<A>(IEffect<E, L, A>) async, A Function<A>(IEffect<E, L, A>) sync})
-
-
Exit<L, R>
= Either<Cause<L>, R>
-
Exceptions / Errors
-
Cause<L>
-
-
Die
-
Failed as a result of a defect (unexpected error)
-
Failure<L>
-
Failed with an expected error
-
Interrupted
-