ifErr method
Performs a side-effect with the contained error if this is an Err.
Implementation
@override
@pragma('vm:prefer-inline')
Err<T> ifErr(@noFuturesAllowed void Function(Err<T> err) noFuturesAllowed) {
try {
noFuturesAllowed(this);
return this;
} catch (error) {
return Err(error);
}
}