onFailure method
Performs an action on the failure value.
Implementation
void onFailure(void Function(L l, StackTrace? s) onFailure) {
switch (this) {
case Success<L, R>():
break;
case Failure<L, R>(value: final l, stackTrace: final s):
onFailure(l, s);
}
}