AdeptDropDown<T> class

Single selection dropdown widget accepting generic type T with customizable theme and behavior.

Inheritance

Constructors

AdeptDropDown.new({Key? key, AdeptDropDownTheme? theme, String label = '', String hint = 'Select', required ValueNotifier<T?> valueNotifier, required List getList(String), required String getText(T), bool canSlct(T)?, dynamic onChanged(T)?, Widget itemWidget(T)?, bool isRequired = false})
Constructor allows you to define styling and value properties.

Properties

canSlct bool Function(T)?
Optional function to determine if an item can be selected.
getter/setter pair
getList List Function(String)
getList function is use to get list of dropdown.
getter/setter pair
getText String Function(T)
function to get display text for a given model.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hint String
hint text shown when no value is selected.
getter/setter pair
isRequired bool
/
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(T)?
Optional callback triggered when selection changes.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
theme AdeptDropDownTheme
AdeptDropDownTheme theme controlling styles and layout.
getter/setter pair
valueNotifier ValueNotifier<T?>
ValueNotifier notifier for the currently selected value.
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
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