Select<T> class

Inheritance

Constructors

Select({Key? key, bool allowClear = false, bool autoClearSearchValue = true, bool bordered = true, Widget? clearIcon, SelectController? controller, bool defaultActiveFirstOption = true, bool defaultOpen = false, bool disabled = false, double? dropdownSelectWidth, Widget dropdownBuilder()?, bool filterOption()?, int filterSort()?, bool labelInValue = false, double listHeight = 256, bool loading = false, int? maxTagCount, Widget? maxTagPlaceholder, int? maxTagTextLength, Widget? menuItemSelectedIcon, SelectMode mode = SelectMode.normal, Widget notFoundContent = const Text('Not Found'), void onBlur()?, void onChange()?, void onClear()?, void onDeselect()?, void onDropdownVisibleChange()?, void onFocus()?, void onInputKeyDown()?, void onMouseEnter()?, void onMouseLeave()?, void onPopupScroll()?, void onSearch()?, void onSelect()?, OptionProp optionFilterProp = OptionProp.value, OptionProp optionLabelProp = OptionProp.children, Map<String, dynamic>? options, String? placeholder, Widget? removeIcon, bool? showArrow, bool showSearch = false, Size size = Size.medium, Status? status, Widget? suffixIcon, Widget tagBuilder()?, List<String>? tokenSeparators, bool virtual = true, required List<Option<T>> children})
const

Properties

allowClear bool
final
autoClearSearchValue bool
final
bordered bool
final
children List<Option<T>>
final
clearIcon Widget?
final
controller SelectController?
final
defaultActiveFirstOption bool
final
defaultOpen bool
final
disabled bool
final
final
final
filterOption → (bool Function()?)
final
filterSort → (int Function()?)
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
labelInValue bool
final
listHeight double
final
loading bool
final
maxTagCount int?
final
maxTagPlaceholder Widget?
final
maxTagTextLength int?
final
final
mode SelectMode
final
notFoundContent Widget
final
onBlur → (void Function()?)
final
onChange → (void Function()?)
final
onClear → (void Function()?)
final
onDeselect → (void Function()?)
final
onDropdownVisibleChange → (void Function()?)
final
onFocus → (void Function()?)
final
onInputKeyDown → (void Function()?)
final
onMouseEnter → (void Function()?)
final
onMouseLeave → (void Function()?)
final
onPopupScroll → (void Function()?)
final
onSearch → (void Function()?)
final
onSelect → (void Function()?)
final
optionFilterProp OptionProp
final
optionLabelProp OptionProp
final
options Map<String, dynamic>?
final
placeholder String?
final
removeIcon Widget?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showArrow bool?
final
showSearch bool
final
size Size
final
status Status?
final
suffixIcon Widget?
final
tagBuilder → (Widget Function()?)
final
tokenSeparators List<String>?
final
virtual bool
final

Methods

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