newRevenue static method

void newRevenue(
  1. String slug,
  2. double amount, {
  3. int currency = 0,
  4. String? orderId,
})

Implementation

static void newRevenue(String slug, double amount, {int currency = 0, String? orderId}) {
  if (!isWeb) {
    _channel.invokeMethod('newRevenue', {
      'slug': slug,
      'amount': amount,
      'currency': currency,
      'orderId': orderId
    });
  }
}