openHelpCenterCollection static method

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

openHelpCenterCollection

Opens the help center collection within the widget

Available Platforms

Web, Android, iOS

Implementation

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

  await _channel.invokeMethod('openHelpCenterCollection',
      {'collectionId': collectionId, 'showBackButton': showBackButton});
}