MultiColumnPickerUtil class

BrnMultiColumnPicker相关工具类

Constructors

MultiColumnPickerUtil()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

getCurrentColumnIndex(PickerEntity? currentItem) int
确定当前 Item 在第几层级
getTotalColumnCount(PickerEntity? entity) int
筛选项最多不超过三层,故直接写代码判断,本质为深度优先搜索。
isSelectedCountExceed(PickerEntity? entity) bool
entity 传入当前点击的 Item !!! 在设置 isSelected = true之前进行 check。 返回 true 符合条件,false 不符合条件