M3ESelectionAppBar class

Wraps an idle header widget and swaps to a contextual selection bar.

idle may be any widget (e.g. an app bar, or a column of header content). Height is intrinsic — place this above the list body (see M3ESelection), not in a scaffold app-bar slot, so arbitrary idle heights do not overflow.

Inheritance

Constructors

M3ESelectionAppBar({required Widget idle, M3ESelectionController? controller, int? itemCount, List<Widget> actions = const <Widget>[], String selectAllLabel = 'Select all', bool showSelectAll = true, VoidCallback? onClear, ValueChanged<bool>? onAllSelected, M3ESelectionTheme? theme, Key? key})
Creates a selection app bar wrapper.
const

Properties

actions List<Widget>
Contextual action widgets (typically M3EIconButtons).
final
controller M3ESelectionController?
Selection controller. Optional under M3ESelectionScope.
final
hashCode int
The hash code for this object.
no setterinherited
idle Widget
Shown when nothing is selected. Any widget; height is intrinsic.
final
itemCount int?
Item count for select-all. Optional under M3ESelectionScope.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onAllSelected ValueChanged<bool>?
Fired when select-all toggles (true = all selected).
final
onClear VoidCallback?
Called instead of M3ESelectionController.clear when close is pressed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectAllLabel String
Label beside the select-all checkbox.
final
showSelectAll bool
Whether to show the select-all row in selection mode.
final
theme M3ESelectionTheme?
Theme override.
final

Methods

copyWithWiring({M3ESelectionController? controller, int? itemCount, ValueChanged<bool>? onAllSelected}) M3ESelectionAppBar
Returns a copy with an injected controller and optional itemCount.
createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() State<M3ESelectionAppBar>
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