SelectDialog<T> class

Inheritance

Constructors

SelectDialog({Key? key, Widget? popupTitle, List<T>? items, double? maxHeight, required String title, required TextStyle itemStyle, required TextStyle style, bool showSearchBox = false, bool isFilteredOnline = false, ValueChanged<T>? onChanged, T? selectedValue, DropdownSearchOnFind<T>? onFind, DropdownSearchPopupItemBuilder<T>? itemBuilder, InputDecoration? searchBoxDecoration, String? hintText, DropdownSearchItemAsString<T>? itemAsString, DropdownSearchFilterFn<T>? filterFn, bool showSelectedItem = false, DropdownSearchCompareFn<T>? compareFn, EmptyBuilder? emptyBuilder, LoadingBuilder? loadingBuilder, ErrorBuilder? errorBuilder, bool autoFocusSearchBox = false, double? dialogMaxWidth, DropdownSearchPopupItemEnabled<T>? itemDisabled, TextEditingController? searchBoxController, Duration? searchDelay, FavoriteItemsBuilder<T>? favoriteItemBuilder, FavoriteItems<T>? favoriteItems, bool showFavoriteItems = false, MainAxisAlignment? favoriteItemsAlignment = MainAxisAlignment.start, TextStyle? searchBoxStyle, TextFieldProps? searchFieldProps, ScrollbarProps? scrollbarProps})
const

Properties

autoFocusSearchBox bool
the search box will be focused if true
final
compareFn DropdownSearchCompareFn<T>?
final
dialogMaxWidth double?
final
emptyBuilder EmptyBuilder?
custom layout for empty results
final
errorBuilder ErrorBuilder?
custom layout for error
final
favoriteItemBuilder FavoriteItemsBuilder<T>?
build favorites chips
final
favoriteItems FavoriteItems<T>?
favorites item
final
favoriteItemsAlignment MainAxisAlignment?
favorite items alignment
final
filterFn DropdownSearchFilterFn<T>?
final
hashCode int
The hash code for this object.
no setterinherited
hintText String?
final
isFilteredOnline bool
final
itemAsString DropdownSearchItemAsString<T>?
final
itemBuilder DropdownSearchPopupItemBuilder<T>?
final
itemDisabled DropdownSearchPopupItemEnabled<T>?
final
items List<T>?
final
itemStyle TextStyle
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
loadingBuilder LoadingBuilder?
custom layout for loading items
final
maxHeight double?
final
onChanged ValueChanged<T>?
final
onFind DropdownSearchOnFind<T>?
final
popupTitle Widget?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scrollbarProps ScrollbarProps?
scrollbar properties
final
searchBoxController TextEditingController?
text controller to set default search word for example
final
searchBoxDecoration InputDecoration?
final
searchBoxStyle TextStyle?
final
searchDelay Duration?
delay before searching
final
searchFieldProps TextFieldProps?
object that passes all props to search field
final
selectedValue → T?
final
showFavoriteItems bool
show or hide favorites items
final
showSearchBox bool
final
showSelectedItem bool
final
style TextStyle
final
title String
final

Methods

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