pastel library
Support for doing something awesome.
More dartdocs go here.
Classes
-
Cons<
T> -
Either<
A, B> -
Err<
O> - ExceptionError
-
ImmutableList<
T> -
ImmutableMap<
K, V> -
Left<
A, B> -
None<
T> -
Ok<
O> -
OnceReactive<
T> -
Option<
T> - PastelError
-
Reactive<
T> -
Result<
O> -
Right<
A, B> -
Scope<
T> -
Some<
T> - StringError
Functions
-
catchException<
O> (O f()) → Result< O> -
comprehensive<
T> (Iterable< T> iterable, bool test(T)) → Iterable<T> -
cond<
T, R> (List< (bool Function(T), R Function(T))> cases, R otherwise(T)) → R Function(T) -
generator<
T> (T f(int, T), T initial) → Iterable< (int, T)> -
match<
T, R> (bool criteria(T), R whenTrue(T), R whenFalse(T)) → R Function(T) -
numbers(
int start, int end, {int step = 1}) → Iterable< int> -
when<
T, R> (List< (T, R Function(T))> cases, R otherwise(T)) → R Function(T)