add

abstract fun add(value: T): Boolean

向列表的末尾添加一个新元素。此操作会触发UI状态更新。

Return

如果列表因操作而改变,则返回 true

Parameters

value

要添加到列表的元素。