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