SeniorMultidropdownButton class

Inheritance

Constructors

SeniorMultidropdownButton({Key? key, bool disabled = false, String? helper, IconData? icon, required List<SeniorDropdownButtonItem> items, required String label, required dynamic onSelected(List), SelectAllConfig? selectAllConfig, bool showUnderline = true, SeniorDropdownButtonStyle? style, String? validator(List?)?, required List? values})
Creates the Senior Design System dropdown. The label, onSelected, value and items parameters are required.
const

Properties

disabled bool
Defines if the dropdown will be disabled.
final
hashCode int
The hash code for this object.
no setterinherited
helper String?
The helper text that is displayed below the dropdown.
final
icon IconData?
An icon that will be added to the dropdown.
final
items List<SeniorDropdownButtonItem>
The dropdown item list. The list cannot be empty.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
label String
The dropdown label text.
final
onSelected → dynamic Function(List)
Callback function executed when an item from the dropdown list is selected.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectAllConfig SelectAllConfig?
Settings that allow enabling the option to check all items or uncheck them.
final
showUnderline bool
Defines whether the line below the dropdown will be displayed.
final
style SeniorDropdownButtonStyle?
The component's style definitions. Allows you to configure: SeniorDropdownButtonStyle.buttonColor the dropdown background color. SeniorDropdownButtonStyle.disabledButtonColor the dropdown background pain when it is disabled. SeniorDropdownButtonStyle.disabledHelperColor the help color when the dropdown is disabled. SeniorDropdownButtonStyle.disabledDropIconColor the color of the drop icon when the dropdown is disabled. SeniorDropdownButtonStyle.disabledIconColor icon color when dropdown is disabled. SeniorDropdownButtonStyle.disabledLabelColor the color of the label when the dropdown is disabled. SeniorDropdownButtonStyle.disabledSelectedItemTextColor the text color of the selected item when the dropdown is disabled. SeniorDropdownButtonStyle.disabledUnderlineColor the underline color when the dropdown is disabled. SeniorDropdownButtonStyle.dropIconColor the color of the dropdown icon. SeniorDropdownButtonStyle.errorColor the error color applied to the label, selected item, helper and underline. SeniorDropdownButtonStyle.iconColor the icon color. SeniorDropdownButtonStyle.itemListTextColor the color of the list items in the dropdown popup menu. SeniorDropdownButtonStyle.labelColorEmpty the color of the label when there is no item selected. SeniorDropdownButtonStyle.labelColorFilled the color of the label when an item is selected. SeniorDropdownButtonStyle.helperColor the helper color. SeniorDropdownButtonStyle.popupMenuColor the color of the dropdown menu popup. SeniorDropdownButtonStyle.selectedItemTextColor the text color of the selected item. SeniorDropdownButtonStyle.underlineColor the underline color.
final
validator → (String? Function(List?)?)
The dropdown validation function. It is executed at component initialization and whenever a change is identified. Return a string, indicating a validation error, or null if it passes validation.
final
values List?
The current dropdown value.
final

Methods

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