主动触发上报缓存事件到服务器.
@override Future<void> flush() async { try { methodChannel.invokeMethod('flush'); } on PlatformException catch (e) { print('flush fail: ${e.message}'); } }