getOrThrow method
T
getOrThrow()
Returns the success
value if available, or throws an exception.
Implementation
T getOrThrow() {
if (this is _Success) {
final success = this as _Success<T>;
return success.results;
} else {
throw Exception("getOrException() called on non-success value!");
}
}