inspect method

  1. @override
Ok<S, F> inspect(
  1. void fn(
    1. S ok
    )
)
override

If Ok, Calls the provided closure with the ok value, else does nothing.

Implementation

@override
@pragma("vm:prefer-inline")
Ok<S, F> inspect(void Function(S ok) fn) {
  fn(ok);
  return this;
}