DeviceUtils class

Name: 设备工具类 基于 device_info_plus 目前仅支持 iOS 和 Android,其他平台返回空字符串 Created by Fitem on 2023/6/2

Constructors

DeviceUtils()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

deviceInfoPlugin → DeviceInfoPlugin
final

Static Methods

getBrand() Future<String>
设备品牌
getDeviceData() Future<Map<String, dynamic>>
获取设备信息
getDeviceId() Future<String>
获取唯一设备 ID 若没有从设备获取到,则生成一个 UUID 作为设备 ID
getModel() Future<String>
获取设备型号
getSystemName() Future<String>
获取设备系统名称
getSystemVersion() Future<String>
获取操作系统版本号