setLauncherVisibility method
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");
}