ProviderListModel<T> class
Methods
-
add({required T item})
→ void
-
将item添加到集合中
item
数据模型
-
addAll({required List<T> items, bool isClear = false})
→ void
-
将item添加到集合中
items
数据集合
isClear
添加数据至集合前是否需要清空
-
addListener(VoidCallback listener)
→ void
-
Register a closure to be called when the object changes.
inherited
-
clear()
→ void
-
清除数据
-
dispose()
→ void
-
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
getItem(int index)
→ T
-
获取数据类目
-
insert({required T item, int? index})
→ void
-
插件数据至集合中
item
数据模型
index
插入数据至集合中指定位置的索引,null或大于items.length将添加至集合末尾。
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
notifierLazy()
→ void
-
inherited
-
notifyListeners()
→ void
-
Call all the registered listeners.
inherited
-
removeItem({required T item})
→ void
-
将item从集合中移除
item 要移除的数据
-
removeListener(VoidCallback listener)
→ void
-
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateAt(int index, T item)
→ void
-