unwrapOrElse method

  1. @override
T unwrapOrElse(
  1. T op(
    1. E
    )
)
override

Unwraps a result, yielding the content of an Ok. If the value is an Err then it calls op with its value.

Implementation

@override
T unwrapOrElse(T Function(E) op) => op(_err);