DeviceUtils class

设备信息

Constructors

DeviceUtils.new()

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

androidDeviceInfo → AndroidDeviceInfo
获取Android设备信息
no setter
infoMap Map<String, dynamic>
将设备信息以Map的形式返回
no setter
iosInfo → IosDeviceInfo
获取iOS设备信息
no setter
isAndroid bool
当前设备是否是Android
no setter
isIOS bool
当前设备是否是iOS
no setter

Static Methods

deviceInfo<T extends BaseDeviceInfo>() → T
获取设备信息
initDeviceInfo() Future<void>
使用之前必须初始化设备信息