flush static method Null safety
Triggers immediate sending of pending events to LaunchDarkly.
Note that the future completes after the native SDK is requested to perform a flush, not when the said flush completes.
Implementation
static Future<void> flush() async {
await _channel.invokeMethod('flush');
}