FP class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
and<T>(List<Predicate<T>> predicates)
→ Predicate<T>
-
-
chainEither<L, T, R>(Either<L, T> either, Pipeline<T, R> pipeline)
→ Either<L, R>
-
-
cond<T, R>(List<(bool Function(T), R Function(T))> cases, R orElse(T))
→ R Function(T)
-
-
distinct<T>()
→ List<T> Function(Iterable<T>)
-
-
distinctMap<K, V>()
→ Map<K, V> Function(Map<K, V>)
-
-
filter<T>(bool predicate(T))
→ List<T> Function(Iterable<T>)
-
-
filterIndex<T>(bool predicate(int, T))
→ List<T> Function(Iterable<T>)
-
-
filterMap<K, V>(bool predicate(K, V))
→ Map<K, V> Function(Map<K, V>)
-
-
flatMap<T, R>(Iterable<R> mapper(T))
→ List<R> Function(Iterable<T>)
-
-
groupBy<T, K>(K keySelector(T))
→ Map<K, List<T>> Function(Iterable<T>)
-
-
ifElse<T, R>(bool predicate(T), R ifTrue(T), R ifFalse(T))
→ R Function(T)
-
-
map<T, R>(R mapper(T))
→ List<R> Function(Iterable<T>)
-
-
mapIndex<T, R>(R mapper(int, T))
→ List<R> Function(Iterable<T>)
-
-
mapMap<K, V, K2, V2>(MapEntry<K2, V2> mapper(K, V))
→ Map<K2, V2> Function(Map<K, V>)
-
-
or<T>(List<Predicate<T>> predicates)
→ Predicate<T>
-
-
partition<T>(bool predicate(T))
→ (List<T>, List<T>) Function(Iterable<T>)
-
-
pipe<T>()
→ Pipeline<T, T>
-
-
reduce<T>(T reducer(T previous, T current))
→ T Function(Iterable<T>)
-
-
when<T, R>(bool predicate(T), R action(T))
→ R? Function(T)
-
Constants
-
p
→ const Placeholder
-