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