err method
E?
err()
Converts from Result<T, E>
to E?
.
Converts this
into a nullable value, consuming this
,
and discarding the success value, if any.
Implementation
E? err() => isOk ? null : _errValue;
Converts from Result<T, E>
to E?
.
Converts this
into a nullable value, consuming this
,
and discarding the success value, if any.
E? err() => isOk ? null : _errValue;