displayArticle method

  1. @override
Future<void> displayArticle(
  1. String articleId
)
override

To display an Article, pass in an articleId from your Intercom workspace.

An article must be ‘live’ to be used in this feature. If it is in a draft or paused state, end-users will see an error if the app tries to open the content.

Implementation

@override
Future<void> displayArticle(String articleId) async {
  await js.context.callMethod('Intercom', ['showArticle', articleId]);
}