unwrapErr method

  1. @override
E unwrapErr()
override

Unwraps a result, yielding the content of an Err.

Throws an exception if the value is an Ok, with a custom message provided by calling toString() on the Ok's value.

Implementation

@override
E unwrapErr() => _err;