fold<W> method

Future<W> fold<W>(
  1. W ifLeft(
    1. L l
    ),
  2. W ifRight(
    1. R r
    )
)

Implementation

Future<W> fold<W>(W Function(L l) ifLeft, W Function(R r) ifRight) =>
    then<W>((result) => result.fold(ifLeft, ifRight));