startClassicForm static method

Future<void> startClassicForm({
  1. required String formId,
  2. bool showBackButton = true,
})

startClassicForm

Manually start the feedback form workflow.

GleapNotInitialisedException thrown when Gleap is not initialised

Available Platforms

Android, iOS, Web

Implementation

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

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