extensions/functions library

Extensions

PredicateImpl on Predicate<T>

Functions

when<R>(bool condition, FunctionCallback<R> function) → R?
whenNotNull<I, R>(I? input, FunctionFactory<I, R> function) → R?
whenNull<I, R>(I? input, FunctionFactory<I, R> function) → R?

Typedefs

FunctionCallback<R> = R Function()
FunctionFactory<T, R> = R Function(T value)
FunctionIndexedFactory<T, R> = R Function(int index, T value)
Predicate<T> = bool Function(T value)