logViewContent method
This event when the user has viewed a form of content in the app.
Implementation
/*
* Parameter key used to specify data for the one or more pieces of content being logged about.
* Data should be a JSON encoded string. Example: "[{\"id\": \"1234\", \"quantity\": 2,
* \"item_price\": 5.99}, {\"id\": \"5678\", \"quantity\": 1, \"item_price\": 9.99}]"
*/
Future<void> logViewContent({
Map<String, dynamic>? content,
String? id,
String? type,
}) {
return logEvent(
name: 'fb_mobile_content_view',
body: {
'fb_content': content ?? {},
'fb_content_id': id ?? "0",
'fb_content_type': type ?? "",
},
);
}