setRevenue method
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;
}