Result<T>.error constructor
const
Result<T>.error (
- Object error
Creates a new error Result with the given error.
Implementation
const Result.error(Object this.error) : _result = null;