You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with CleverTapPlugin.recordEvent("Event Name", properties) method which doesn't allow us to pass null in the properties field when there's no extra data to be passed for an event. This worked until I moved the project to sound null safety. Please update the SDK to support null data in this method.
The text was updated successfully, but these errors were encountered:
Hi @snghnishant, Can you elaborate as to why you need to pass null as the properties for recordEvent(). Instead of null you can send empty property value. For eg:-
var eventData = {'': ''};
CleverTapPlugin.recordEvent("Flutter Event", eventData);
passing null makes more sense as it signifies that no extra property is to be sent for that event to work, also it reduces the effort of declaring an extra variable. Though we can also pass a { } as a parameter like CleverTapPlugin.recordEvent("Some eventName", {}) but to me null make more sense when there's no data to be passed. Well, just take this as a suggestion for enhancement but it's up to the maintainer. I am using CleverTapPlugin.recordEvent("Some eventName", {}) for now. Thanks!
Framework • revision 18116933e7
Engine • revision d3ea636dc5
Tools • Dart 2.14.4
in pubspec.yaml
There is an issue with
CleverTapPlugin.recordEvent("Event Name", properties)
method which doesn't allow us to passnull
in the properties field when there's no extra data to be passed for an event. This worked until I moved the project to sound null safety. Please update the SDK to support null data in this method.The text was updated successfully, but these errors were encountered: