ConversionResult<T>.failure constructor
ConversionResult<T>.failure (
- ConversionException error
Creates a failed result containing error.
The resulting isFailure will be true and accessing value will
rethrow the captured exception with its original stack trace.
Implementation
factory ConversionResult.failure(ConversionException error) =>
ConversionResult._(null, error);