value property

T value

Gets the value from the parse operation if it was successful, or throws an exception indicating the parse failure otherwise.

This method is exactly equivalent to calling the getValueOrThrow method, but is terser if the code is already clear that it will throw if the parse failed.

Implementation

T get value => getValueOrThrow();