startConversation static method

Future<void> startConversation({
  1. bool showBackButton = true,
})

startConversation

Manually start the conversation workflow.

GleapNotInitialisedException thrown when Gleap is not initialised

Available Platforms

Android, iOS, Web

Implementation

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

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