deviceInfo top-level property

DeviceInfoUtils deviceInfo
final
  • @Author: chuxiong
  • @Created at: 10-06-2025 17:40
  • @Email:
  • description 设备信息工具(基于 device_info_plus)。app 启动调用 init 后, 通过 osVersion / deviceType / androidSdkInt / serialNumber 等 getter 读取缓存值;Windows 平台可调用 winUniqueIdentifier 取机器码。 依赖:device_info_plus(平台插件——测试需打桩)、crypto(纯 Dart)。 全局 DeviceInfoUtils 单例。

Implementation

/// 全局 [DeviceInfoUtils] 单例。
final deviceInfo = DeviceInfoUtils();