setRevenue method

  1. @override
Future<bool> setRevenue(
  1. String orderId,
  2. double amount,
  3. String currency, {
  4. Map<String, dynamic>? data,
})
override

Implementation

@override
Future<bool> setRevenue(String orderId, double amount, String currency,
    {Map<String, dynamic>? data}) async {
  // TODO: implement event
  try {
    final result = await methodChannel.invokeMethod<bool>('setRevenue', {
      'orderId': orderId,
      'amount': amount,
      'currency': currency,
      'data': _convertDynamicMapToString(data)
    });
    return result ?? false;
  } catch (e) {
    // //print(e);
  }
  return false;
}