TxCascadePicker<D, V> class
级联选择器
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- TxCascadePicker
Constructors
-
TxCascadePicker.new({required List<
D> datasource, required ValueMapper<D, String?> labelMapper, required ValueMapper<D, V?> ? valueMapper, required ValueMapper<D, List< childrenMapper, required ValueChanged<D> ?>D> ? onChanged, V? initialValue, D? initialData, Key? key, SelectableWidgetBuilder<D> ? itemBuilder, IndexedDataWidgetBuilder<D?> ? tabItemBuilder, ListTileThemeData? listTheme, String? placeholder, bool? isParentNodeSelectable}) -
TxCascadePicker.fromMapList({required List<
Map> datasource, required ValueChanged<D> ? onChanged, String? valueKey, String? labelKey, String? idKey, String? pidKey, String? childrenKey, Key? key, SelectableWidgetBuilder<D> ? itemBuilder, IndexedDataWidgetBuilder<D?> ? tabItemBuilder, ListTileThemeData? listTheme, V? initialValue, D? initialData, String? placeholder, bool? isParentNodeSelectable}) - 通过给定非树型数据数组创建一个级联选择器
-
TxCascadePicker.fromMapTree({required List<
Map> datasource, required ValueChanged<D> ? onChanged, String? labelKey, String? valueKey, String? childrenKey, Key? key, SelectableWidgetBuilder<D> ? itemBuilder, IndexedDataWidgetBuilder<D?> ? tabItemBuilder, ListTileThemeData? listTheme, V? initialValue, D? initialData, String? placeholder, bool? isParentNodeSelectable}) - 通过给定树型数据创建一个级联选择器
Properties
-
childrenMapper
→ ValueMapper<
D, List< D> ?> -
数据的值
final
-
datasource
→ List<
D> -
数据源
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialData → D?
-
初始选择的数据
final
- initialValue → V?
-
初始值
final
- isParentNodeSelectable → bool
-
父节点是否可选
final
-
itemBuilder
→ SelectableWidgetBuilder<
D> ? -
列表项构造器
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
-
labelMapper
→ ValueMapper<
D, String?> -
数据展示给用户的标签
final
- listTheme → ListTileThemeData?
-
列表项主题
final
-
onChanged
→ ValueChanged<
D> ? -
数据变更回调
final
- placeholder → String?
-
未选择数据时 Tab 栏的文字提示
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tabItemBuilder
→ IndexedDataWidgetBuilder<
D?> ? -
Tab 项构造器
final
-
valueMapper
→ ValueMapper<
D, V?> -
数据的值
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< TxCascadePicker> -
Creates the mutable state for this widget at a given location in the tree.
override
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited