handleMethodCall method
Implementation
Future<void> handleMethodCall(MethodCall call) async {
switch (call.method) {
case 'onPurchaseStarted':
_handleOnPurchaseStarted(call);
break;
case 'onPurchaseCompleted':
_handleOnPurchaseCompleted(call);
break;
case 'onPurchaseCancelled':
onPurchaseCancelled?.call();
break;
case 'onPurchaseError':
_handleOnPurchaseError(call);
break;
case 'onRestoreCompleted':
_handleOnRestoreCompleted(call);
break;
case 'onRestoreError':
_handleOnRestoreError(call);
break;
case 'onDismiss':
onDismiss?.call();
break;
default:
break;
}
}