Global class
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
Static Methods
-
checkRootAccess()
→ Future<void>
-
-
init(VoidCallback callback, {double? w, double? h, int orientation = 0, bool banRootAccess = true})
→ Future
-
初始化全局信息
callback
初始化完成回调, SP、BaseConfig、AwesomeExt、PackageUtils、屏幕像素
w
设计稿宽度, h
设计稿高度, orientation
设备方向, 0 竖屏, 1 横屏
banRootAccess
是否判断越狱的手机,默认true,禁止越狱的手机使用
-
setTable(double w, double h)
→ void
-