fold<T> abstract method

T fold<T>(
  1. T onLeft(
    1. L left
    ),
  2. T onRight(
    1. R right
    )
)

Implementation

T fold<T>(T Function(L left) onLeft, T Function(R right) onRight);