showInAppMessages static method

Future<void> showInAppMessages({
  1. Set<InAppMessageType>? types,
})

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 shouldShowInAppMessagesAutomatically to false.

@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(),
      },
    );