ifSome method
Performs a side-effect with the contained value if this is a Some.
Implementation
@override
@pragma('vm:prefer-inline')
Result<None<T>> ifSome(
@noFutures void Function(None<T> self, Some<T> some) noFutures,
) {
return Ok(this);
}