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
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- StandardMultiSelectMenuItem
Constructors
-
StandardMultiSelectMenuItem({Key? key, required Choice<
T> result, required bool isGroupingTitle, required bool isSelected, required double maxWidth, 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, 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
-
final
- closeOnActivate → bool
-
final
- dividerColor → Color?
-
Color of the top divider. Only used when showTopDivider is
true.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
- selectAllOption → bool
-
final
- selectedItemButtonStyle → ButtonStyle?
-
final
- selectedItemMenuStyle → TextStyle?
-
Merged onto the label style when this row is selected (not a grouping
title).
nullleaves the selected label identical to unselected rows.final - selectedItemPadding → EdgeInsetsGeometry?
-
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