ListMixin<T> mixin
内部数据是List特有的成员
- Superclass Constraints
- Mixin Applications
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDisposed → bool
-
no setterinherited
-
latest
↔ List<
T> -
最新的值
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addError(
Object error, [StackTrace? stackTrace]) → void -
inherited
-
append(
T element, {bool fromHead = false}) → T? - 追加, 并发射
-
appendAll(
List< T> elements, {bool fromHead = false}) → List<T> ? - 追加一个list, 并发射
-
deselect(
T target) → List< T> ? -
对
target
进行取消选择操作 -
dispose(
) → void -
关闭流
inherited
-
distinct(
[bool test(List< T> previous, List<T> next)?]) → Stream<List< T> > -
inherited
-
filterItem(
bool test(T element)) → List< T> ? - 按条件过滤, 并发射过滤后的数据
-
flatMap<
S> (S mapper(T value)) → Stream< List< S> > - 对list的item做变换之后重新组成list
-
forEach(
ValueChanged< T> action) → List<T> ? - 对元素逐个执行操作后, 重新发射
-
invalidate(
[List< T> ? newData]) → void -
重新发送数据 用户修改数据后刷新的场景
inherited
-
map<
S> (S convert(List< T> event)) → Stream<S> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
T element) → T? - 删除一个的元素, 并发射
-
removeAt(
int index) → T? - 删除指定索引的元素, 并发射
-
removeBatch(
Iterable< T> elements) → Iterable<T> ? - 删除一组的元素, 并发射
-
removeFirst(
) → T? - 删除第一个的元素, 并发射
-
removeLast(
) → T? - 删除最后一个的元素, 并发射
-
removeWhere(
bool test(T t)) → void - 删除指定条件的元素
-
replace(
int index, T element) → T? - 替换指定index的元素, 并发射
-
replaceFirst(
T element) → T? - 替换第一个的元素, 并发射
-
replaceItem(
T element) → T? - 替换指定元素, 并发射
-
replaceLast(
T element) → T? - 替换最后一个的元素, 并发射
-
reset(
) → void -
清理保存的值, 恢复成初始状态
inherited
-
runtimeSummary(
) → String -
运行时概要
inherited
-
sample(
Duration duration) → Stream< List< T> > -
inherited
-
search(
IO< String> keyword, {required SearchKeywordCallback<T> by}) → Stream<List< T> > - 搜索关键字
-
select(
T? target, {bool isRadio = true}) → List< T> ? -
对
target
进行单选操作, 如果T
不为Selectable则什么都不做, 直接透传 根据isRadio
判断是否是单选, 默认单选 -
toString(
) → String -
A string representation of this object.
inherited
-
where(
bool test(List< T> event)) → Stream<List< T> > -
inherited
-
whereType<
R> () → Stream< R> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited