restorePurchases method
Implementation
@override
Future<void> restorePurchases({
OnError? onError,
}) async {
try {
await _inAppPurchase.restorePurchases();
} on InAppPurchaseException catch (x) {
log('RestoreException(${x.code}, ${x.message}, ${x.source})');
onError?.call(x.message.toString());
}
}