logViewContent method
Log this event when the user has viewed a form of content in the app.
Implementation
Future<void> logViewContent({
Map<String, dynamic>? content,
String? id,
String? type,
String? currency,
double? price,
}) {
return logEvent(
name: eventNameViewedContent,
parameters: {
paramNameContent: content != null ? json.encode(content) : null,
paramNameContentId: id,
paramNameContentType: type,
paramNameCurrency: currency,
},
valueToSum: price,
);
}