trackCustomEvent static method
Implementation
static Future<bool> trackCustomEvent(
String event, Map<String, String> properties) {
Map<String, dynamic> eventData = {
'eventName': event,
'eventData': properties
};
return NativeBridge.sync(
'Analytics.trackCustomEvent', jsonEncode(eventData))
.then((result) => jsonDecode(result)['result'] == true);
}