DeviceUtilsCore class
Constructors
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
Static Methods
-
getDeviceInfo(
) → Future< Map< String, dynamic> > - 获取设备信息
-
getDeviceType(
) → DeviceTypeEnum - 获取设备类型,分开判断是因为web端不支持Platform
-
getScreenSize(
) → Size -
isMobileUserAgent(
) → bool - 判断是否移动端web