FlatSelection class
支持tag 、输入 、range、选择等类型混合一级筛选 也可支持点击选项跳转二级页面
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- FlatSelection
Constructors
-
FlatSelection({Key? key, required List<
SelectionEntity> entityDataList, dynamic confirmCallback(Map<String, String> )?, OnCustomFloatingLayerClick? onCustomFloatingLayerClick, int preLineTagSize = 3, bool isNeedConfigChild = true, FlatSelectionController? controller, SelectionConfig? themeData})
Properties
-
confirmCallback
→ dynamic Function(Map<
String, String> )? -
点击确定回调
final
- controller → FlatSelectionController?
-
controller.dispose() 操作交由外部处理
final
-
entityDataList
→ List<
SelectionEntity> -
筛选原始数据
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNeedConfigChild → bool
-
是否需要配置子选项
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onCustomFloatingLayerClick → OnCustomFloatingLayerClick?
-
当
BrnSelectionEntity.filterType
为BrnSelectionFilterType.layer
orBrnSelectionFilterType.customLayer
时 跳转到二级页面的自定义操作final - preLineTagSize → int
-
每行展示tag数量 默认真是3个
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- themeData ↔ SelectionConfig?
-
主题配置
如有对文本样式、圆角、间距等
BrnSelectionConfig
有特定要求可以配置该属性getter/setter pair
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → _FlatSelectionState -
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