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