BrnSelectionMenuWidget class

筛选菜单子组件

Inheritance

Constructors

BrnSelectionMenuWidget({Key? key, required BuildContext context, required List<SelectionEntity> data, double height = 50.0, double? width, BrnOnMenuItemClick? onMenuItemClick, BrnOnRangeSelectionConfirm? onConfirm, ConfigTagCountPerRow? configRowCount, ScrollController? extraScrollController, double? constantTop, required SelectionConfig themeData})

Properties

configRowCount ConfigTagCountPerRow?
每行的 tag 数,用于子组件配置
final
constantTop double?
指定筛选固定的相对于屏幕的顶部距离,默认null不指定
final
context BuildContext
final
data List<SelectionEntity>
筛选菜单数据
final
extraScrollController ScrollController?
筛选所在列表的外部列表滚动需要收起筛选,此处为最外层列表,有点恶心,但是暂时只想到这个方法,有更好方式的一定要告诉我
final
hashCode int
The hash code for this object.
no setterinherited
height double
筛选菜单高度
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onConfirm BrnOnRangeSelectionConfirm?
确认回调
final
onMenuItemClick BrnOnMenuItemClick?
筛选菜单项点击回调
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
themeData SelectionConfig
筛选菜单主题
final
width double?
筛选菜单宽度
final

Methods

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