ClueDropDownCheckButton<T, E> class

A dropdown button with checkboxes for CLUe UI components.

Inheritance

Constructors

ClueDropDownCheckButton.new({Key? key, String? title, required String allSelectText, required String notSelectText, bool emptyIsAll = true, List<T> selectedKeyList = const [], List<T> blockKeyList = const [], Map<T, E> itemMap = const {}, double? width, required void onChanged(List<T> selectedKeyList, List<E> selectedValueList), SvgPicture? checkboxOn, SvgPicture? checkboxOff, SvgPicture? arrowImage})
Creates a ClueDropDownCheckButton.

Properties

allSelectText String
The text displayed when all items are selected.
final
arrowImage ↔ SvgPicture?
The arrow image for the dropdown button.
getter/setter pair
blockKeyList List<T>
The list of keys to be disabled.
final
checkboxOff ↔ SvgPicture?
The checkbox icon for the unchecked state.
getter/setter pair
checkboxOn ↔ SvgPicture?
The checkbox icon for the checked state.
getter/setter pair
emptyIsAll bool
Determines if an empty selection represents all items.
final
hashCode int
The hash code for this object.
no setterinherited
itemMap Map<T, E>
The map of keys and values to be displayed.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
notSelectText String
The text displayed when no items are selected.
final
onChanged → void Function(List<T> selectedKeyList, List<E> selectedValueList)
The callback function when the selected keys change.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedKeyList List<T>
The list of selected keys.
final
title String?
The title of the dropdown.
final
width double?
The width of the dropdown button.
final

Methods

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