DropdownFlutter<T> class

Inheritance

Constructors

const
const

Properties

applyButtonBuilder → _ApplyButtonBuilder?
The applyButtonBuilder that will be used to build button demand.
final
canCloseOutsideBounds → bool
Can close DropdownFlutter overlay by tapping outside. Here "outside" covers the entire screen.
final
closedHeaderPadding → EdgeInsets?
Padding for DropdownFlutter header (closed state).
final
closeDropDownOnClearFilterSearch → bool
DropdownFlutter will close on tap Clear filter for all search and searchRequest constructors
final
collapsedDropdownHeight → double?
final
controller → SingleSelectController<T?>?
The controller that can be used to control DropdownFlutter selected item.
final
debounceSearchCharacters → int?
final
decoration → CustomDropdownDecoration?
DropdownFlutter decoration. Contain sub-decorations SearchFieldDecoration, ListItemDecoration and ScrollbarThemeData.
final
disabledDecoration → CustomDropdownDisabledDecoration?
DropdownFlutter disabled decoration.
final
enabled → bool
DropdownFlutter enabled/disabled state. If disabled, you can not open the dropdown.
final
excludeSelected → bool
Hide the selected item from the items list.
final
expandedHeaderPadding → EdgeInsets?
Padding for DropdownFlutter header (opened/expanded state).
final
futureRequest → Future<List<T>> Function(String)?
The asynchronous computation from which the items list returns.
final
futureRequestDelay → Duration?
Duration after which the futureRequest is to be executed.
final
hashCode → int
The hash code for this object.
no setterinherited
headerBuilder → _HeaderBuilder<T>?
The headerBuilder that will be used to build DropdownFlutter header field.
final
headerListBuilder → _HeaderListBuilder<T>?
The headerListBuilder that will be used to build DropdownFlutter header field.
final
hideSelectedFieldWhenExpanded → bool
Hide the header field when DropdownFlutter overlay opened/expanded.
final
hintBuilder → _HintBuilder?
The hintBuilder that will be used to build DropdownFlutter hint of header field.
final
hintText → String?
Text that suggests what sort of data the dropdown represents.
final
initialItem → T?
Initial selected item from the list of items.
final
initialItems → List<T>?
Initial selected items from the list of items.
final
items → List<T>?
The list of items user can select.
final
itemsListPadding → EdgeInsets?
Padding for DropdownFlutter items list.
final
itemsScrollController → ScrollController?
Scroll controller to access items list scroll behavior.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
listItemBuilder → _ListItemBuilder<T>?
The listItemBuilder that will be used to build item on demand.
final
listItemPadding → EdgeInsets?
Padding for DropdownFlutter each list item.
final
listValidator → String? Function(List<T>)?
A method that validates the selected items. Returns an error string to display as per the validation, or null otherwise.
final
maxlines → int
Text maxlines for header and list item text.
final
multiSelectController → MultiSelectController<T>?
The multiSelectController that can be used to control CustomDropdown.multiSelect selected items.
final
noResultFoundBuilder → _NoResultFoundBuilder?
The noResultFoundBuilder that will be used to build area when there's no search results match.
final
noResultFoundText → String?
Text that notify there's no search results match.
final
onApplyButtonPressed → dynamic Function(List<T>)?
Called when the apply button of the DropdownFlutter is pressed. only applicable in multiple select dropdown.
final
onChanged → dynamic Function(T?)?
Called when the item of the DropdownFlutter should change.
final
onListChanged → dynamic Function(List<T>)?
Called when the list of items of the DropdownFlutter should change.
final
overlayController → OverlayPortalController?
The overlayController allows you to explicitly handle the DropdownFlutter overlay states (show/hide).
final
overlayHeight → double?
DropdownFlutter opened/expanded area height. Only applicable if items are greater than 4 otherwise adjust automatically.
final
overlayWidth → double?
DropdownFlutter opened/expanded area width.
final
overrideShowHintTextWhenExpanded → bool
final
resetListWhenSearchDebounced → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrollbarPadding → EdgeInsets?
final
searchHintText → String?
Text that suggests what to search in the search field.
final
searchRequestLoadingIndicator → Widget?
Widget to display while search request loading.
final
selectAllItemBuilder → _SelectAllListItemBuilder<T>?
The selectAllItemBuilder that will be used to build item on demand.
final
shouldResetSelection → bool
Will reset the selected item to null if this is set to true. Only works in single select dropdown
final
validateOnChange → bool
Enable the validation listener on item change. This implies to validator everytime when the item change.
final
validator → String? Function(T?)?
A method that validates the selected item. Returns an error string to display as per the validation, or null otherwise.
final
visibility → dynamic Function(bool)?
Callback for dropdown visibility.
final

Methods

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