showInAppMessages static method
Displays the specified store in-app message types to the user if there are any available to be shown.
- Important: This should only be used if you disabled these messages from showing automatically
during SDK configuration setting
shouldShowInAppMessagesAutomaticallytofalse.
@param types The types of messages to show.
Implementation
static Future<void> showInAppMessages({
Set<InAppMessageType>? types,
}) =>
_channel.invokeMethod(
'showInAppMessages',
{
'types': types?.map((e) => e.index).toList(),
},
);