ListExtension<T> extension

on

Properties

isNotNullOrEmpty bool

Available on List<T>?, provided by the ListExtension extension

no setter
isNull bool

Available on List<T>?, provided by the ListExtension extension

no setter
isNullOrEmpty bool

Available on List<T>?, provided by the ListExtension extension

no setter
random → T?

Available on List<T>?, provided by the ListExtension extension

随机获取元素
no setter

Methods

copy() List<T>

Available on List<T>?, provided by the ListExtension extension

insertHead(T element) bool

Available on List<T>?, provided by the ListExtension extension

插入指定元素到列表头部
insertSafe(int index, T element) bool

Available on List<T>?, provided by the ListExtension extension

插入指定元素
insertTail(T element) bool

Available on List<T>?, provided by the ListExtension extension

插入指定元素到列表尾部
item(int index) → T?

Available on List<T>?, provided by the ListExtension extension

获取指定元素
removeSafeAt(int index) → T?

Available on List<T>?, provided by the ListExtension extension

删除指定元素