maybeMap<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  1. TResult success(
    1. _Success value
    )?,
  2. TResult error(
    1. _Error value
    )?,
  3. TResult purchaseBelongsToOtherUser(
    1. _PurchaseBelongsToOtherUser value
    )?,
  4. TResult invalidToken(
    1. _InvalidToken value
    )?,
  5. TResult expired(
    1. _Expired value
    )?,
  6. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeMap<TResult extends Object?>({
  TResult Function(_Success value)? success,
  TResult Function(_Error value)? error,
  TResult Function(_PurchaseBelongsToOtherUser value)?
      purchaseBelongsToOtherUser,
  TResult Function(_InvalidToken value)? invalidToken,
  TResult Function(_Expired value)? expired,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;