maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<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
    )?,
  6. required TResult orElse(),
})
inherited

Implementation

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