JsTools class

Constructors

JsTools()

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

generateRandomColor Color
生成随机色
no setter
generateRandomString String
生成 6-11 位随机字符串
no setter

Static Methods

generateRandomStringByLength({int length = 10}) String
生成指定长度随机字符串
getMd5(String org) String
logObj(dynamic object, int deep, {bool isObject = false}) String
object 解析的对象 deep 递归的深度,用来获取缩进的空白长度 isObject 用来区分当前map或list是不是来自某个字段,则不用显示缩进。单纯的map或list需要添加缩进
showDropDownWidget<T>(BuildContext context, {required WidgetBuilder builder, AlignmentGeometry? alignment = Alignment.bottomCenter, dynamic barrierDismissible = true}) Future<T?>
showSheetWidget<T>(BuildContext context, {required WidgetBuilder builder, ModalPosition position = ModalPosition.bottom, dynamic barrierDismissible = true}) Future<T?>
从底部弹出Widget
textFieldConfig({required List<FocusNode> nodes, BuildContext? context, String? doneString, Color? background}) → KeyboardActionsConfig