inspect method
Calls inspect with the contained value if this
is an Ok.
Examples
// prints "2"
const Ok<int, String>(2).inspect(print);
// prints nothing
const Err<int, String>('error').inspect(print);
Implementation
@override
@useResult
Err<T, E> inspect(void Function(T value) inspect) => this;