fold<T> method
Folds the Either into a single value.
If this is a Failure, the onFailure function is called with the value.
If this is a Success, the onSuccess function is called with the value.
Implementation
@override
T fold<T>(T Function(L l, StackTrace? s) onFailure, T Function(R r) onSuccess) => onFailure(value, stackTrace);