mapErr method

  1. @override
Err<T> mapErr(
  1. @noFuturesAllowed Err<T> noFuturesAllowed(
    1. Err<T> err
    )
)
override

Transforms the inner Err instance if this is an Err.

Implementation

@override
@pragma('vm:prefer-inline')
Err<T> mapErr(
  @noFuturesAllowed Err<T> Function(Err<T> err) noFuturesAllowed,
) {
  return noFuturesAllowed(this);
}