whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? success(
    1. CustomerInfo customerInfo
    )?,
  2. TResult? error(
    1. PurchasesError error
    )?,
  3. TResult? purchaseBelongsToOtherUser()?,
  4. TResult? invalidToken()?,
  5. TResult? expired(
    1. String obfuscatedEmail
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(CustomerInfo customerInfo)? success,
  TResult? Function(PurchasesError error)? error,
  TResult? Function()? purchaseBelongsToOtherUser,
  TResult? Function()? invalidToken,
  TResult? Function(String obfuscatedEmail)? expired,
}) =>
    throw _privateConstructorUsedError;