displaySurvey method

  1. @override
Future<void> displaySurvey(
  1. String surveyId
)
override

To display a Survey, pass in a surveyId from your Intercom workspace.

A survey 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> displaySurvey(String surveyId) async {
  await js.context.callMethod('Intercom', ['startSurvey', surveyId]);
}