unwrap method

T unwrap()

Unwraps the result, returns data if ok, otherwise throws error.

Implementation

T unwrap() {
  if (isErr) {
    throw error!;
  }
  return data!;
}