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