inspect method
Calls given op
if ok and returns the result as is.
Implementation
TaskResult<T, E> inspect(void Function(T data) op) {
if (isOk) {
op(data!);
}
return this;
}
Calls given op
if ok and returns the result as is.
TaskResult<T, E> inspect(void Function(T data) op) {
if (isOk) {
op(data!);
}
return this;
}