foldAsync<B> method
Asynchronously applies one of two functions depending on the side present.
Implementation
Future<B> foldAsync<B>(
FutureOr<B> Function(L left) ifLeft,
FutureOr<B> Function(R right) ifRight,
) async {
return fold(ifLeft, ifRight);
}