logRevenueAmount method

Future<void> logRevenueAmount(
  1. double amount
)

Tracks revenue. This allows us to automatically display data relevant to revenue on the Amplitude website, including average revenue per daily active user (ARPDAU), 7, 30, and 90 day revenue, lifetime value (LTV) estimates, and revenue by advertising campaign cohort and daily/weekly/monthly cohorts.

Implementation

Future<void> logRevenueAmount(double amount) async {
  Map<String, dynamic> properties = _baseProperties();
  properties['amount'] = amount;

  return await _channel.invokeMethod(
      'logRevenueAmount', jsonEncode(properties));
}