fold<T> method

  1. @override
T fold<T>(
  1. T initialValue,
  2. T combine(
    1. T previousValue,
    2. E element
    )
)
override

Reduces a collection to a single value by iteratively combining each element of the collection with an existing value.

Implementation

@override
T fold<T>(T initialValue, T Function(T previousValue, E element) combine) =>
    _wrappedList.fold(initialValue, combine);