Err<T, E extends BaseException> constructor
const
Err<T, E extends BaseException> (
- E error
Creates a failed result containing error.
Implementation
const Err(this.error);