track static method
Implementation
static void track(String eventName,
{Map<String, dynamic> properties = const {}}) {
try {
if (properties.isEmpty) {
plotlineChannel.invokeMethod('track', <String, dynamic>{'eventName': eventName});
} else {
plotlineChannel.invokeMethod('track',
<String, dynamic>{'eventName': eventName, 'properties': properties});
}
} catch (e) {
debugPrint("Error in track: $e");
}
}