SpinnerFenceNotifier class

Inheritance

Constructors

SpinnerFenceNotifier(SpinnerFenceState state, VoidCallback? onReseted, SpinnerFenceIntercept? onItemIntercept)
SpinnerFenceNotifier.init(SpinnerEntity data, VoidCallback? onReseted, SpinnerFenceIntercept? onItemIntercept)
构造方法
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
onItemIntercept SpinnerFenceIntercept?
事件传递
final
onReseted VoidCallback?
事件传递
final
outside SpinnerEntity
需要返回至外部得数据,同步原数据筛选状态
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value SpinnerFenceState
The current value stored in this notifier.
getter/setter pairinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
chidrenSelected(List<SpinnerItemData> list, bool state) → dynamic
设置子集选中
chidrenSelectedStatus(List<SpinnerItemData> list) bool
判断子集是否有选中
completed([bool onlyClosed = false]) → 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
getColumn(int index) List<SpinnerItemData>
获取对应列的数据列表
getResult() → (List<SpinnerItemData>, List<String>)
获取选择的结果
itemOnHightlighted(int index, int column) → void
fence 模式下分组切换
itemOnSelected(int index, int column, [bool isHighlighted = true]) → void
点击按钮选项 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 当前组的字段
toString() String
A string representation of this object.
inherited
updateState(SpinnerEntity data) → dynamic
didUpdateWidget 时触发 更新当前state,用于异步显示筛选条件

Operators

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

Static Methods

defaultIndexList(SpinnerEntity entity) List<int>
获取默认选中展示