mapOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? mapOrNull<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
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<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,
}) =>
    throw _privateConstructorUsedError;