getOrThrow method

  1. @override
S getOrThrow()
override

Get the success value or throw the failure

If this is a Success, returns the value. If this is a Failure, throws the error (wrapped in Exception if needed).

Implementation

@override
S getOrThrow() => throw StateError('Cannot call getOrThrow on LoadingResult');