maybeWhen<TResult extends Object?> method
TResult
maybeWhen<TResult extends Object?>({
- TResult success(
- CustomerInfo customerInfo
- TResult error(
- PurchasesError error
- TResult purchaseBelongsToOtherUser()?,
- TResult invalidToken()?,
- TResult expired(
- String obfuscatedEmail
- 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;