flushAll method
将缓存中所有未上报数据全部上报
Implementation
void flushAll({Duration delayTime = const Duration(seconds: 5)}) {
_log('flushAll=> delayTime:$delayTime', true);
Timer(delayTime, () {
_supplementTimeOutApiEvent();
if (_basicInfo == null) {
_log('please call the method XKitReporter().init first.');
return;
}
if (_reportCache.isNotEmpty) {
_reportToServerWithFailed('flushAll');
}
});
}