unwrap method

  1. @override
T unwrap()
override

Unwraps a result, yielding the content of an Ok.

Throws the contained error if this result is an Err.

Implementation

@override
T unwrap() => throw ResultUnwrapException<T, E>(_err.toString());