fold<R extends Object> method

R fold<R extends Object>(
  1. Mapper<Iterable, R> t1Mapper,
  2. Mapper<Map<String, dynamic>, R> t2Mapper
)
inherited

Folds all values into a non nullable one

Implementation

R fold<R extends Object>(Mapper<T1, R> t1Mapper, Mapper<T2, R> t2Mapper) {
  return _fold(t1Mapper, _t1) ?? _fold(t2Mapper, _t2)!;
}