value property
- @useResult
Returns the contained value.
Unlike Result.unwrap, this method is known to never throw because the error variant cannot possibly be instantiated.
Examples
// prints "2"
print(const Ok<int, String>(2).value);
Implementation
@useResult
T get value => ok.unwrap();