io library
纯 Dart 环境(命令行工具、Dart VM 中的测试)的平台实现。Flutter App 使用 deeprespond_im_flutter 的 DRFlutterPlatform。
Classes
- DefaultDatabaseOpener
-
默认的数据库打开方式:drift 的 NativeDatabase 在独立的 isolate 中执行 SQL(《1.本地存储》第 4 节)。
WAL 模式、synchronous = NORMAL;
key不为 null 时先执行 PRAGMA key(SQLCipher,第 7 节)。 - FileSecureStore
- 文件保存的“安全存储”:只用于命令行工具和测试(不加密)。
- IoHttpTransport
- dart:io 的 HttpClient(《4.实现与测试》第 3 节:需要控制跳转、流式上传,不依赖 http 包)。
- IoPlatform
- 纯 Dart 的平台实现(命令行工具、Dart VM 中的集成测试):数据保存在 dataDir,始终在前台、网络可用。
- IoWsConnector
- dart:io 的 WebSocket。
- RealClock
- 真实的时钟:DateTime.now、Stopwatch 和 Timer。
- SecureRandomSource