Expected<T, E>.error constructor
- E error
Creates an Expected containing an error.
Implementation
const Expected.error(E error)
: _value = null,
_error = error,
_hasValue = false;
Creates an Expected containing an error.
const Expected.error(E error)
: _value = null,
_error = error,
_hasValue = false;