UtilInternal class

UtilInternal 内部工具类

Constructors

UtilInternal()

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
isApple bool
是否是苹果平台
no setter
isDesktop bool
是否是桌面平台
no setter
isIOS bool
是否是 IOS 平台
no setter
isMobile bool
是否是移动平台
no setter
isWeb bool
是否是 Web 平台
no setter

Static Methods

addPostFrameCallback(void callback(Duration)) → dynamic
渲染完成回调
cancelFocus(BuildContext context) → dynamic
取消焦点, 作用于全局
lockHorizontalScreen() → dynamic
锁定横屏
lockVerticalScreen() Future<void>
锁定竖屏
nextFocus(BuildContext context) → dynamic
下一焦点
operatingSystem() String
当前操作系统
requestFocus(BuildContext context, FocusNode focusNode) → dynamic
获取焦点
unfocus() → dynamic
取消焦点, 取消指定 context 关联的 FocusScope 内的焦点
unlockScreenDirection() Future<void>
解锁屏幕方向