inspect method

  1. @override
Err<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")
Err<S, F> inspect(void Function(S ok) fn) {
  return this;
}