SpinnerFilterNotifier class

弹框数据交互状态控制

Inheritance

Constructors

SpinnerFilterNotifier(SpinnerFilterState state, VoidCallback? onReseted, SpinnerFilterIntercept? onItemIntercept)
SpinnerFilterNotifier.init(List<SpinnerEntity> data, List<AttachmentView> attachList, VoidCallback? onReseted, SpinnerFilterIntercept? onItemIntercept)
构造方法
factory

Properties

attachment List<AttachmentView>
外部传入自定义视图
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
onItemIntercept SpinnerFilterIntercept?
点击事件拦截,获取到处理结果后继续执行
final
onReseted VoidCallback?
选项状态重置
final
outside List<SpinnerEntity>
需要返回至外部得数据,同步原数据筛选状态
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value SpinnerFilterState
The current value stored in this notifier.
getter/setter pairinherited

Methods

addAttachListener() → dynamic
设置自定组件的监听数据变化
addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
completed([bool onlyClosed = false]) → void
完成筛选
dispose() → void
移除监听
override
getResult() → (Map<String, List>, String)
获取选择的结果
itemOnSelected(STabEntityAndIndexData data, int index) → void
点击按钮选项 data 包含当前点击的分组数据 和 分组下标 index 按钮下标
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reset([String? key]) → void
重置 key 当前组的字段
resetAttachment([String? key]) → void
重置自定义外部输入 key 当前组的字段
toString() String
A string representation of this object.
inherited
updateAttach(List<AttachmentView> attachList) → dynamic
接收外部自定义粘连视图,并设置监听
updateState(List<SpinnerEntity> data, List<AttachmentView> attachList) → dynamic
didUpdateWidget 时触发 更新当前state,用于异步显示筛选条件

Operators

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