dispatch
The dispatch() method processes all queued events and sends them to the server immediately. By default the SDK batches events and sends them at intervals defined by setDispatchInterval(). Use this method when you need to flush the queue right away — for example before the app is closed. If the user has opted out, the method does nothing.
Syntax
await FlutterPiwikPro.sharedInstance.dispatch();Examples
To force-send all queued events:
await FlutterPiwikPro.sharedInstance.dispatch();Related methods
Updated 6 days ago