CommonUtils 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 Methods
-
getFitWidth(
BuildContext context) → double - 获取屏幕短的一边(避免横竖屏切换的影响)
-
getScreenHeight(
BuildContext context) → double - 获取屏幕高度
-
getScreenWidth(
BuildContext context) → double - 获取屏幕宽度
-
getWebInputAutofocus(
) → dynamic - 获取Safari上输入框是否需要自动获取焦点
-
isListEmpty(
List? list) → bool -
isListNotEmpty(
List? list) → bool -
isNumeric(
String s) → bool -
launch(
String url) → dynamic -
launchUrlByInternal(
String linkUrl) → dynamic