valueOrThrow property

  1. @override
ValueT valueOrThrow
override

Returns the value if it is a success. Else, throws the error as an Exception.

Implementation

@override
ValueT get valueOrThrow => throw failure;