MultipleBottomButton class

用于多选状态页面底部的组合按钮 支持 全选+选中状态+次要按钮+主要按钮 的组合(中括号代表可选)

Inheritance

Constructors

MultipleBottomButton({Key? key, dynamic mainButton, dynamic subButton, VoidCallback? onMainButtonTap, VoidCallback? onSubButtonTap, void onSelectedButtonTap(BrnMultipleButtonArrowState)?, void onSelectAll(bool?)?, bool hasArrow = false, BrnMultipleBottomController? bottomController})
const

Properties

bottomController BrnMultipleBottomController?
暴露给外界设置多选状态的控制器
final
hasArrow bool
已选后面是否需要带小箭头。默认 false
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
mainButton → dynamic
主按钮的文案,默认为主题色 可以传入自定义 Widget 以及 String 类型的文案,不传则不展示
final
onMainButtonTap VoidCallback?
主按钮点击回调
final
onSelectAll → void Function(bool?)?
全选的点击回调,不传则不展示多选按钮,回传参数 true 表示选中全选,false 表示取消全选
final
onSelectedButtonTap → void Function(BrnMultipleButtonArrowState)?
selectedButtonOnTap, 点击已选的回调,存在三种状态:-1:不可展开(当 value 为 0 的时候),0:收起,1:展开
final
onSubButtonTap VoidCallback?
次按钮点击回调
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subButton → dynamic
次按钮的文案可以传入自定义 Widget 以及 String 类型的文案,不传则不展示
final

Methods

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