startBot static method

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

startBot

Starts a bot

Available Platforms

Web, Android, iOS

Implementation

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

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