openHelpCenterArticle static method

Future<void> openHelpCenterArticle({
  1. required String articleId,
  2. required bool showBackButton,
})

openHelpCenterArticle

Opens the help center article within the widget

Available Platforms

Web, Android, iOS

Implementation

static Future<void> openHelpCenterArticle(
    {required String articleId, required bool showBackButton}) async {
  if (!kIsWeb && !io.Platform.isAndroid && !io.Platform.isIOS) {
    debugPrint(
      'openHelpCenter is not available for current operating system',
    );
    return;
  }

  await _channel.invokeMethod('openHelpCenterArticle',
      {'articleId': articleId, 'showBackButton': showBackButton});
}