fold<T> abstract 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
T fold<T>(T Function(L l, StackTrace? s) onFailure, T Function(R r) onSuccess);