handlePurchaseUpdate method
Implementation
Future<void> handlePurchaseUpdate(PurchasedItem? productItem) async {
// If the product item is not null, handle the purchase update based on the platform.
if (productItem != null) {
if (Platform.isAndroid) {
// Handle purchase update for Android.
await _handlePurchaseUpdateAndroid(productItem);
} else {
// Handle purchase update for iOS.
await _handlePurchaseUpdateIOS(productItem);
}
}
}