OptionalPageMixin<T, ARG> mixin
- Superclass Constraints
- Mixin Applications
-
Methods
-
addError(Object error, [StackTrace? stackTrace])
→ void
-
inherited
-
append(T element, {bool fromHead = false})
→ T?
-
追加, 并发射
inherited
-
appendAll(List<T> elements, {bool fromHead = false})
→ List<T>?
-
追加一个list, 并发射
inherited
-
dispose()
→ void
-
关闭流
inherited
-
distinct([bool test(List<T>? previous, List<T>? next)?])
→ Stream<List<T>?>
-
inherited
-
filterItem(bool test(T element))
→ List<T>?
-
按条件过滤, 并发射过滤后的数据
inherited
-
flatMap<S>(S mapper(T value))
→ Stream<List<S>>
-
对list的item做变换之后重新组成list
inherited
-
forEach(ValueChanged<T> action)
→ List<T>?
-
对元素逐个执行操作后, 重新发射
inherited
-
invalidate([List<T>? newData])
→ void
-
重新发送数据 用户修改数据后刷新的场景
inherited
-
loadMore([ARG? args])
→ Future<bool>
-
请求下一页数据
-
loadPage(int page, [ARG? args])
→ Future<void>
-
请求指定页数的数据
-
map<S>(S convert(List<T>? event))
→ Stream<S>
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
refresh([ARG? args])
→ Future<List<T>?>
-
刷新列表
-
remove(T element)
→ T?
-
删除一个的元素, 并发射
inherited
-
removeAt(int index)
→ T?
-
删除指定索引的元素, 并发射
inherited
-
removeBatch(Iterable<T> elements)
→ Iterable<T>?
-
删除一组的元素, 并发射
inherited
-
removeFirst()
→ T?
-
删除第一个的元素, 并发射
inherited
-
removeLast()
→ T?
-
删除最后一个的元素, 并发射
inherited
-
removeWhere(bool test(T t))
→ void
-
删除指定条件的元素
inherited
-
replace(int index, T element)
→ T?
-
替换指定index的元素, 并发射
inherited
-
replaceFirst(T element)
→ T?
-
替换第一个的元素, 并发射
inherited
-
replaceLast(T element)
→ T?
-
替换最后一个的元素, 并发射
inherited
-
reset()
→ void
-
清理保存的值, 恢复成初始状态
inherited
-
runtimeSummary()
→ String
-
运行时概要
inherited
-
sample(Duration duration)
→ Stream<List<T>?>
-
inherited
-
search(IO<String> keyword, {required SearchCallback<T> by})
→ Stream<List<T>>
-
搜索关键字
inherited
-
select(T? target, {bool isRadio = true})
→ List<T>?
-
对
target
进行单选操作, 如果T
不为Selectable则什么都不做, 直接透传
inherited
-
selectIndex(int index)
→ List<T>?
-
对
index
处进行单选操作, 如果T
不为Selectable则什么都不做, 直接透传
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
where(bool test(List<T>? event))
→ Stream<List<T>?>
-
inherited
-
whereNotEmpty()
→ Stream<List<T>>
-
转换为非空流
inherited
-
whereNotNull()
→ Stream<List<T>>
-
转换为非空流
inherited
-
whereType<R>()
→ Stream<R>
-
inherited