ItemDataManager<E> mixin

ItemDataManager实现类: 维护_dataList数据列表对DataBuildInterface接口实现, 维护_dataSetCallbacks回调列表对DataNotifyInterface接口实现

Implemented types
Mixin applications

Properties

hashCode int
The hash code for this object.
no setterinherited
items List<E?>
获取不可变数据列表
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size int
数据长度
no setteroverride

Methods

addItem(E item) → void
新增item
override
addItems(List<E?> items) → void
新增数组items
override
addItemsClear(List<E?> items) → void
清除并新增
override
clear() → void
清除列表
override
indexOfItem(E item) int
获取item数据对应首个下标
override
insert(int position, E item) → void
插入item到指定下标
override
item(int position) → E?
获取下标position数据项
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDataSetChanged() → void
通知已注册的监听器数据集已更改
override
notifyItemChanged(int position) → void
通知指定下标的监听器数据集已更改
override
registerCallback(DataSetCallback onDataSetChanged) → void
注册数据变化监听器
override
remove(E item) → void
移除item
override
removeAt(int position) → void
移除下标position
override
removeCallback(DataSetCallback? onDataSetChanged) → void
移除数据变化监听器
override
swap(int current, int next) → void
交换下标位置
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited