mapOr<W> method

  1. @override
W mapOr<W>(
  1. W defaultValue,
  2. W fn(
    1. S ok
    )
)
override

Returns the provided default (if Err), or applies a function to the contained value (if Ok).

Implementation

@override
W mapOr<W>(W defaultValue, W Function(S ok) fn) {
  return defaultValue;
}