FlatMoreSelection class

更多的筛选项里面的single 项 主要是分为两种:标签和跳到其他页面的layer 标签类型包罗了:标题、有无更多的展开收起、自定义输入、标签项 页面类型保罗了:标题、选择框

Inheritance

Constructors

FlatMoreSelection({Key? key, required SelectionEntity selectionEntity, StreamController<FlatClearEvent>? clearController, OnCustomFloatingLayerClick? onCustomFloatingLayerClick, int preLineTagSize = 3, double parentWidth = 0, required SelectionConfig themeData})

Properties

clearController StreamController<FlatClearEvent>?
清空已选项 一般跟重置功能搭配使用
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onCustomFloatingLayerClick OnCustomFloatingLayerClick?
SelectionEntity.filterTypeBrnSelectionFilterType.layer orBrnSelectionFilterType.customLayer时 跳转到二级页面的自定义操作
final
parentWidth double
父容器宽度 根据父容器宽度来计算每个tag宽度 默认0 当不传入宽度,使用tag最小宽度 75
final
preLineTagSize int
每行tag数 默认3个
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectionEntity SelectionEntity
数据源
final
themeData SelectionConfig
主题配置
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _FlatMoreSelectionState
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