WhatsappBotFlutter class

WhatsappBotFlutter for maintaining a single Browser and Page instance with methods like connect and send

Constructors

WhatsappBotFlutter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

connect({String? sessionDirectory, String? wppJsContent, String? chromiumDownloadDirectory, String? chromeVersion, bool? headless = true, String? browserWsEndpoint, int qrCodeWaitDurationSeconds = 60, List<String>? puppeteerArgs, Duration? connectionTimeout = const Duration(seconds: 20), dynamic onQrCode(String qrCodeUrl, Uint8List? qrCodeImage)?, dynamic onConnectionEvent(ConnectionEvent)?, void chromeDownloadProgress(int received, int total)?, dynamic onBrowserCreated(Browser browser)?, Future<Browser> puppeteerClient()?}) Future<WhatsappClient?>
connect method will open WhatsappWeb in headless webView and connect to the whatsapp we can manually pass wppJsContent to use custom wppConnect.js for connecting to whatsapp ( specially for web ) we can download this file from here : https://github.com/wppconnect-team/wa-js/releases/latest/download/wppconnect-wa.js and pass QrCode in onQrCode callback Scan this code , and on successful connection we will get onSuccessCallback We will get a WhatsappClient from here ,and we can use this client to work with whatsapp use puppeteerClient to pass your own puppeteer instance like this puppeteerClient: () => puppeteer.launch() can throw Errors