logShare method
Logs the standard share
event.
Apps with social features can log the Share event to identify the most viral content.
Implementation
Future<void> logShare({
required String contentType,
required String itemId,
required String method,
Map<String, Object>? parameters,
}) {
_assertParameterTypesAreCorrect(parameters);
return _delegate.logEvent(
name: 'share',
parameters: filterOutNulls(<String, Object?>{
_CONTENT_TYPE: contentType,
_ITEM_ID: itemId,
_METHOD: method,
if (parameters != null) ...parameters,
}),
);
}