unsafeUnwrap method

  1. @override
T unsafeUnwrap({
  1. ErrorConfig? config,
})
override

This method is unsafe, and should only be used in a test environments

Takes a Result<T, E> and returns a T when the result is an Ok, otherwise it throws a custom object.

@param config

Implementation

@override
T unsafeUnwrap({ErrorConfig? config}) => this.value;