AdeptMultiDropDown<T> class
Multi-selection dropdown widget for selecting multiple items and accepting generic type T
.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- AdeptMultiDropDown
Constructors
- AdeptMultiDropDown.new({AdeptDropDownTheme? theme, String label = '', String hint = '', required List getList(String), required String getText(T), bool isOpen = false, dynamic onChanged(String)?, Widget itemWidget(T)?, BoxDecoration? slctItemDecoration, Color? slctItemIconColor, bool isRequired = false, required bool isSelected(T), required void removeItem(T), required void addItem(T), Key? key})
- Constructor allows you to define styling and value properties.
Properties
- addItem ↔ void Function(T)
-
getter/setter pair
- getList ↔ List Function(String)
-
Function returning the full or filtered list of items.
getter/setter pair
- getText ↔ String Function(T)
-
getList function is use to get list of dropdown.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint ↔ String
-
Hint text shown when no items are selected.
getter/setter pair
- isOpen ↔ bool
-
This key help dropdown want to build in center.
getter/setter pair
- isRequired ↔ bool
-
getter/setter pair
- isSelected ↔ bool Function(T)
-
getter/setter pair
- itemWidget ↔ Widget Function(T)?
-
/ DropDown Item
getter/setter pair
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label ↔ String
-
Label text shown above the dropdown.
getter/setter pair
- onChanged ↔ dynamic Function(String)?
-
Optional callback triggered when selections change.
getter/setter pair
- removeItem ↔ void Function(T)
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slctItemDecoration ↔ BoxDecoration?
-
BoxDecoration for Item Selected
getter/setter pair
- slctItemIconColor ↔ Color?
-
getter/setter pair
- theme ↔ AdeptDropDownTheme
-
AdeptDropDownTheme Theme controlling the appearance and padding.
getter/setter pair
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
-
splitList(
{required List list, required void setState(void ())}) → Widget - Tapping a chip toggles its visibility state.
-
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