DeviceUtilsCore class

Constructors

DeviceUtilsCore()

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

isAndroid → bool
no setter
isApp → bool
no setter
isDesktop → bool
no setter
isIOS → bool
no setter
isIPad → bool
判断是否iPad
no setter
isLinux → bool
no setter
isMacOS → bool
no setter
isWeb → bool
no setter
isWebMobile → bool
no setter
isWebPc → bool
no setter
isWindows → bool
no setter

Static Methods

getDeviceInfo() → Future<Map<String, dynamic>>
获取设备信息
getDeviceType() → DeviceTypeEnum
获取设备类型,分开判断是因为web端不支持Platform
getScreenSize() → Size
isMobileUserAgent() → bool
判断是否移动端web