inspectErr method

  1. @override
Err<S, F> inspectErr(
  1. void fn(
    1. F error
    )
)
override

If Err, Calls the provided closure with the err value, else does nothing.

Implementation

@override
@pragma("vm:prefer-inline")
Err<S, F> inspectErr(void Function(F error) fn) {
  fn(err);
  return this;
}