ExtensionList extension
- on
Methods
-
getJsonPretty(
) → String - 将list转化为json字符串,换行
-
isLengthBetween(
int minLength, int maxLength) → bool - Checks if length of list is BETWEEN minLength to maxLength. 检查数据长度是否在minLength到maxLength之间
-
isLengthEqualTo(
int maxLength) → bool - Checks if length of list is EQUAL than maxLength. 检查数据长度是否等于maxLength
-
isLengthGreaterOrEqual(
int maxLength) → bool - Checks if length of list is GREATER OR EQUAL to maxLength. 检查数据长度是否大于或等于maxLength
-
isLengthGreaterThan(
int maxLength) → bool - Checks if length of list is GREATER than maxLength. 检查数据长度是否大于maxLength
-
isLengthLowerOrEqual(
int maxLength) → bool - Checks if length of list is LOWER OR EQUAL to maxLength. 检查数据长度是否小于或等于maxLength
-
isNull(
) → bool - Checks if data is null. 判断对象是否为null
-
isNullOrBlank(
) → bool - Checks if data is null or Blank (Empty or only contains whitespace). 检查数据是否为空或空(空或只包含空格)
-
toJsonString(
) → String - Transform list to json 将list转化为json字符串
-
valueTotal(
) → num -
Get total value of list of num (int/double)
获取num列表的总值(int/double)
Example:
1,2,3,4
=> 10