fold<B> method
Applies ifRight to the contained value and returns its result.
Since this is a Right, ifLeft is ignored.
Implementation
@override
B fold<B>(B Function(L left) ifLeft, B Function(R right) ifRight) {
return ifRight(value);
}