trackEvent method
Implementation
@override
Future<LinkTrailEventResult> trackEvent({required String name, double? value, String? currency}) async {
try {
final map = await methodChannel.invokeMapMethod<Object?, Object?>('trackEvent', {
'name': name,
'value': value,
'currency': currency,
});
return LinkTrailEventResult.fromMap(map!);
} on PlatformException catch (e) {
throw LinkTrailException.fromPlatformException(e);
}
}