SelectPickerInput class

The input field widget for the legacy SelectPicker.

This widget renders the button-like input that opens the selection bottom sheet.

Inheritance

Constructors

SelectPickerInput({Key? key, required List<SelectPickerItem> list, required SelectPickerInputStyle selectPickerInputStyle, required bool selectFirst, required dynamic onSelect(SelectPickerItem), required String hint, required SelectPickerBottomSheetStyle selectPickerBottomSheetStyle, required SelectPickerInputSearchStyle selectPickerInputSearchStyle, required SelectPickerCardItemStyle selectPickerCardItemStyle, required SelectPickerTopSelectorStyle selectPickertopSelectorStyle, String? hintSearch, bool? showId, Future<List<SelectPickerItem>> onSearch(String? text)?, dynamic onClose()?, bool? disabled, String? inputError, bool? isLoading, String? loadingMessage, String? initialItem})
Creates a SelectPickerInput.
const

Properties

disabled bool?
Whether the input is interactive.
final
hashCode int
The hash code for this object.
no setterinherited
hint String
The hint text shown when nothing is selected.
final
hintSearch String?
The search input placeholder.
final
initialItem String?
The initially selected item ID.
final
inputError String?
An error message to display below the input.
final
isLoading bool?
Whether the widget is in a loading state.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
list List<SelectPickerItem>
The list of items to display.
final
loadingMessage String?
Message to display while loading.
final
onClose → dynamic Function()?
Callback executed when the picker sheet is closed.
final
onSearch Future<List<SelectPickerItem>> Function(String? text)?
Custom search function for asynchronous filtering.
final
onSelect → dynamic Function(SelectPickerItem)
Callback when an item is selected.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectFirst bool
Whether to automatically select the first item.
final
selectPickerBottomSheetStyle SelectPickerBottomSheetStyle
Style configuration for the bottom sheet.
final
selectPickerCardItemStyle SelectPickerCardItemStyle
Style configuration for each item card.
final
selectPickerInputSearchStyle SelectPickerInputSearchStyle
Style configuration for the internal search input.
final
selectPickerInputStyle SelectPickerInputStyle
Style configuration for the input field.
final
selectPickertopSelectorStyle SelectPickerTopSelectorStyle
Style configuration for the top header area.
final
showId bool?
Whether to show the item ID.
final

Methods

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