ObjectUtils class

Object 工具类

Constructors

ObjectUtils()

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

compareListIsEqual(List? listA, List? listB) bool
Returns true Two List Is Equal. 比较两个集合是否相同
getLength(Object? value) int
get length. 获取object的长度
isEmpty(Object? object) bool
Returns true String or List or Map is empty. 判断object对象是否为空
isEmptyList(Iterable? list) bool
Returns true if the list is null or 0-length. 判断集合是否为空
isEmptyMap(Map? map) bool
Returns true if there is no key/value pair in the map. 判断字典是否为空
isEmptyString(String? str) bool
Returns true if the string is null or 0-length. 判断字符串是否为空
isNotEmpty(Object object) bool
Returns true String or List or Map is not empty. 判断object是否不为空
isNull(dynamic s) bool
判断对象是否为null
isNullOrBlank(dynamic s) bool
Checks if data is null or blank (empty or only contains whitespace). 检查数据是否为空或空(空或只包含空格)