ListNullSafety extension
List空安全扩展
- on
-
- List?
Properties
- isNotNullOrEmpty → bool
-
Available on List?, provided by the ListNullSafety extension
判断是否不为空no setter - isNullOrEmpty → bool
-
Available on List?, provided by the ListNullSafety extension
判断是否为空no setter - toNonNull → List
-
Available on List?, provided by the ListNullSafety extension
转化为非空数组,如果为空则返回[]no setter
Methods
-
toNonNullList(
[List def = const []]) → List -
Available on List?, provided by the ListNullSafety extension
判断是否为空,如果为空则返回默认值