StandardMultiSelectMenuItem<T> class

Single menu entry rendered inside the StandardMultiSelectField dropdown.

Extracted to keep the parent build method readable; receives only the resolved values it needs and delegates selection back via onTap.

Inheritance

Constructors

StandardMultiSelectMenuItem({Key? key, required Choice<T> result, required bool isGroupingTitle, required bool isSelected, required double maxWidth, required bool menuWidthBaseOnContent, required EdgeInsetsGeometry? itemPadding, required EdgeInsetsGeometry? selectedItemPadding, required bool closeOnActivate, required Key? itemKey, required bool showSelectedTick, required bool selectAllOption, required ButtonStyle? buttonStyle, required ButtonStyle? selectedItemButtonStyle, required bool mergeSelectedStyle, required ItemColor? itemColor, Color? pressedColor, bool showTopDivider = false, Color? dividerColor, required bool isMobile, required TextStyle? titleMenuStyle, required TextStyle? itemMenuStyle, TextStyle? selectedItemMenuStyle, Color? groupHeaderBackgroundColor, EdgeInsetsGeometry? groupHeaderPadding, Color? selectedTickColor, Color? selectAllIconColor, required Widget itemMenuButton(Choice<T> choice)?, required VoidCallback? onTap, Widget? leadingIconBuilder(Choice<T> choice, bool isSelected)?, Widget? trailingIconBuilder(Choice<T> choice, bool isSelected)?})
const

Properties

buttonStyle ButtonStyle?
final
closeOnActivate bool
final
dividerColor Color?
Color of the top divider. Only used when showTopDivider is true.
final
groupHeaderBackgroundColor Color?
Background fill for a grouping-title row. When set, the header reads as a distinct section band instead of a plain transparent label. null keeps the header transparent (no band). Only applies to grouping titles.
final
groupHeaderPadding EdgeInsetsGeometry?
Padding for a grouping-title row. Kept compact (shorter than the 48pt option rows) so the header does not read as a tappable item. Only applies to grouping titles.
final
hashCode int
The hash code for this object.
no setterinherited
isGroupingTitle bool
final
isMobile bool
final
isSelected bool
final
itemColor ItemColor?
final
itemKey Key?
final
itemMenuButton Widget Function(Choice<T> choice)?
final
itemMenuStyle TextStyle?
final
itemPadding EdgeInsetsGeometry?
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leadingIconBuilder Widget? Function(Choice<T> choice, bool isSelected)?
final
maxWidth double
final
final
mergeSelectedStyle bool
final
onTap VoidCallback?
final
pressedColor Color?
final
result Choice<T>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectAllIconColor Color?
Colour of the leading select-all checkbox on option rows. null preserves the historical green checkbox. Only used when selectAllOption is true.
final
selectAllOption bool
final
selectedItemButtonStyle ButtonStyle?
final
selectedItemMenuStyle TextStyle?
Merged onto the label style when this row is selected (not a grouping title). null leaves the selected label identical to unselected rows.
final
selectedItemPadding EdgeInsetsGeometry?
final
selectedTickColor Color?
Colour of the trailing "selected" check on option rows. null preserves the historical green tick. Only used when showSelectedTick is true.
final
showSelectedTick bool
final
showTopDivider bool
When true, a hairline Divider of dividerColor is drawn directly above this row. The caller decides this so grouping titles never receive one; the item itself only renders what it is told.
final
titleMenuStyle TextStyle?
final
trailingIconBuilder Widget? Function(Choice<T> choice, bool isSelected)?
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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