MXCascaderController class

-----------------------------------------------------------Cascader 级联选择器 用于多层级数据选择,主要为树形结构,可展示更多的数据。 options 树形结构的数据 onChange 值发生变更时触发 onClose 关闭抽屉时触发 onPick 单个选项被选中时触发

Constructors

MXCascaderController({MXCascaderOnchange? onChange, MXCascaderOnpick? onPick, VoidCallback? onClose, required List<MXCascaderOptions> options})

Properties

activityIndex → int
no setter
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String?
getter/setter pair
onChange → MXCascaderOnchange?
onChange 值发生变更时触发
final
onClose → VoidCallback?
onClose 关闭抽屉时触发
final
onPick → MXCascaderOnpick?
onPick 单个选项被选中时触发
final
options → List<MXCascaderOptions>
options 树形结构的数据
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stepsController → MXStepsController
no setter
values ↔ Map<int, List<MXCascaderOptions>>?
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCellTap(MXCascaderOptions option) → void
toHiddenCascader() → void
toRenderCascader({required BuildContext context, String title = '地址选择', String? id}) → void
toString() → String
A string representation of this object.
inherited
updateLayout() → void

Operators

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

Static Properties

cascaderState ↔ MXCascaderState?
getter/setter pair