setLauncherVisibility method

  1. @override
Future<void> setLauncherVisibility(
  1. IntercomVisibility visibility
)
override

To hide or show the standard launcher on the bottom right-hand side of the screen.

Implementation

@override
Future<void> setLauncherVisibility(IntercomVisibility visibility) async {
  await js.context.callMethod('Intercom', [
    'update',
    convertJsObjectToDartObject(updateIntercomSettings(
      'hide_default_launcher',
      visibility == IntercomVisibility.visible ? false : true,
    )),
  ]);

  print("Showing launcher: $visibility");
}