requestPurchaseWithQuantityIOS method
Buy product with quantity
@returns {Future} will receive result from purchaseUpdated
listener.
Implementation
Future requestPurchaseWithQuantityIOS(
String sku,
int quantity,
) async {
if (_platform.isIOS) {
return await _channel
.invokeMethod('requestProductWithQuantityIOS', <String, dynamic>{
'sku': sku,
'quantity': quantity.toString(),
});
}
throw PlatformException(
code: _platform.operatingSystem, message: "platform not supported");
}