logEvent method
Log an app event with the specified name and set of parameters.
Implementation
Future<void> logEvent({
required String name,
Map<String, dynamic>? body,
double? valueToSum,
}) {
final data = <String, dynamic>{
'name': name,
'parameters': body ?? {},
'_valueToSum': valueToSum ?? 0,
};
return _channel!.invokeMethod<void>('logEvent', data);
}