SearchableDropdown<T> class

Inheritance

Constructors

SearchableDropdown({Key? key, SearchableDropdownController<T>? controller, Widget? hintText, Widget backgroundDecoration(Widget)?, String? searchHintText, Widget? noRecordText, double? dropDownMaxHeight, EdgeInsetsGeometry? margin, Widget? trailingIcon, Widget? trailingClearIcon, Widget? leadingIcon, void onChanged(T?)?, List<SearchableDropdownMenuItem<T>>? items, T? value, bool isEnabled = true, VoidCallback? disabledOnTap, double? width, bool isDialogExpanded = true, bool hasTrailingClearIcon = true, double? dialogOffset})
const
SearchableDropdown.future({required Future<List<SearchableDropdownMenuItem<T>>?> futureRequest()?, Key? key, SearchableDropdownController<T>? controller, Widget? hintText, Widget backgroundDecoration(Widget)?, String? searchHintText, Widget? noRecordText, double? dropDownMaxHeight, EdgeInsetsGeometry? margin, Widget? trailingIcon, Widget? trailingClearIcon, Widget? leadingIcon, void onChanged(T?)?, bool isEnabled = true, VoidCallback? disabledOnTap, Duration? changeCompletionDelay, double? width, bool isDialogExpanded = true, bool hasTrailingClearIcon = true, SearchableDropdownMenuItem<T>? initialValue, double? dialogOffset})
const
SearchableDropdown.paginated({required Future<List<SearchableDropdownMenuItem<T>>?> paginatedRequest(int, String?)?, int? requestItemCount, Key? key, SearchableDropdownController<T>? controller, Widget? hintText, Widget backgroundDecoration(Widget)?, String? searchHintText, Widget? noRecordText, double? dropDownMaxHeight, EdgeInsetsGeometry? margin, Widget? trailingIcon, Widget? trailingClearIcon, Widget? leadingIcon, void onChanged(T?)?, bool isEnabled = true, VoidCallback? disabledOnTap, Duration? changeCompletionDelay, double? width, bool isDialogExpanded = true, bool hasTrailingClearIcon = true, SearchableDropdownMenuItem<T>? initialValue, double? dialogOffset})
const

Properties

backgroundDecoration → (Widget Function(Widget child)?)
Background decoration of dropdown, i.e. with this you can wrap dropdown with Card.
final
changeCompletionDelay Duration?
Delay of dropdown's search callback after typing complete.
final
controller SearchableDropdownController<T>?
final
dialogOffset double?
Dialog offset from dropdown.
final
disabledOnTap VoidCallback?
final
Height of dropdown's dialog, default: context.deviceHeight*0.3.
final
futureRequest → (Future<List<SearchableDropdownMenuItem<T>>?> Function()?)
Future service which is returns DropdownMenuItem list.
final
hashCode int
The hash code for this object.
no setterinherited
hasTrailingClearIcon bool
Activates clear icon trailing.
final
hintText Widget?
Hint text shown when the dropdown is empty.
final
initialFutureValue SearchableDropdownMenuItem<T>?
final
initialValue → T?
final
isDialogExpanded bool
final
isEnabled bool
final
items List<SearchableDropdownMenuItem<T>>?
Dropdown items.
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leadingIcon Widget?
Dropdown trailing icon.
final
margin EdgeInsetsGeometry?
Dropdowns margin padding with other widgets.
final
noRecordText Widget?
Shows if there is no record found.
final
onChanged → (void Function(T? value)?)
Returns selected Item.
final
paginatedRequest → (Future<List<SearchableDropdownMenuItem<T>>?> Function(int page, String? searchKey)?)
Paginated request service which is returns DropdownMenuItem list.
final
requestItemCount int?
Paginated request item count which returns in one page, this value is using for knowledge about isDropdown has more item or not.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchHintText String?
SearchBar hint text.
final
trailingClearIcon Widget?
Dropdown trailing clear icon.
final
trailingIcon Widget?
Dropdown trailing icon.
final
width double?
final

Methods

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