fold<T0> method

  1. @override
T0 fold<T0>(
  1. T0 initialValue,
  2. T0 combine(
    1. T0,
    2. T
    )
)
override

Accumulates value starting with initialValue and applying combine for each element in order.

Implementation

@override
T0 fold<T0>(T0 initialValue, T0 Function(T0, T) combine) =>
    _items.fold(initialValue, combine);