some method
T?
some()
Converts from Option<T>
to T?
.
Converts this
into a nullable value, consuming this
,
and discarding the none, if any.
Implementation
T? some() => isSome ? _someValue : null;
Converts from Option<T>
to T?
.
Converts this
into a nullable value, consuming this
,
and discarding the none, if any.
T? some() => isSome ? _someValue : null;