inAppPurchaseWithAttributes static method

void inAppPurchaseWithAttributes(
  1. String eventName,
  2. SingularIAP purchase,
  3. Map attributes
)

Implementation

static void inAppPurchaseWithAttributes(
    String eventName, SingularIAP purchase, Map attributes) {
  _channel.invokeMethod('eventWithArgs', {
    'eventName': eventName,
    'args': {...purchase.toMap, ...attributes}
  });
}