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
-
clearClientKeyboard(
) → void - 清除数据
-
getClipboardData(
) → dynamic - 获取剪切板内容
-
hideKeyboard(
) → void - 隐藏软键盘
-
isColorLight(
Color color) → bool - 判断是否为亮色
-
parseColor(
String color, {Color defaultColor = Colors.transparent}) → Color - 将颜色字符串转化为color
-
randomColor(
) → int - Generates a random integer that represents a Hex color. 生成一个表示十六进制颜色的随机整数
-
randomNumber(
{int max = 999}) → int -
setClipboardData(
String text) → dynamic - 拷贝内容到剪切板
-
showKeyboard(
) → void - 展示软键盘