SearchableDropdown<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- SearchableDropdown
Constructors
-
SearchableDropdown({Key? key, Widget? hintText, Widget backgroundDecoration(Widget child)?, String? searchHintText, Widget? noRecordText, double? dropDownMaxHeight, EdgeInsetsGeometry? margin, Widget? trailingIcon, Widget? leadingIcon, void onChanged(T? value)?, List<
SearchableDropdownMenuItem< ? items, T? value, bool isEnabled = true, VoidCallback? disabledOnTap})T> > -
SearchableDropdown.future({Key? key, Widget? hintText, Widget backgroundDecoration(Widget child)?, String? searchHintText, Widget? noRecordText, double? dropDownMaxHeight, EdgeInsetsGeometry? margin, Widget? trailingIcon, Widget? leadingIcon, bool isEnabled = true, VoidCallback? disabledOnTap, void onChanged(T? value)?, required Future<
List< futureRequest()?})SearchableDropdownMenuItem< ?>T> > -
SearchableDropdown.paginated({Key? key, Widget? hintText, Widget backgroundDecoration(Widget child)?, String? searchHintText, Widget? noRecordText, double? dropDownMaxHeight, EdgeInsetsGeometry? margin, Widget? trailingIcon, Widget? leadingIcon, bool isEnabled = true, VoidCallback? disabledOnTap, void onChanged(T? value)?, required Future<
List< paginatedRequest(int page, String? searchKey)?, int? requestItemCount})SearchableDropdownMenuItem< ?>T> >
Properties
- backgroundDecoration → (Widget Function(Widget child)?)
-
Background decoration of dropdown, i.e. with this you can wrap dropdown with Card
final
- disabledOnTap ↔ VoidCallback?
-
getter/setter pair
- dropDownMaxHeight → double?
-
Height of dropdown's dialog, default: MediaQuery.of(context).size.height*0.3
final
-
futureRequest
↔ (Future<
List< Function()?)SearchableDropdownMenuItem< ?>T> > -
Future service which is returns DropdownMenuItem list
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hintText → Widget?
-
Hint text shown when the dropdown is empty
final
- isEnabled ↔ bool
-
getter/setter pair
-
items
↔ List<
SearchableDropdownMenuItem< ?T> > -
Dropdown items
getter/setter pair
- 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?
-
Shwons if there is no record found
final
- onChanged → (void Function(T? value)?)
-
Returns selected Item
final
-
paginatedRequest
↔ (Future<
List< Function(int page, String? searchKey)?)SearchableDropdownMenuItem< ?>T> > -
Paginated request service which is returns DropdownMenuItem list
getter/setter pair
- requestItemCount ↔ int?
-
Paginated request item count which returns in one page, this value is using for knowledge about isDropdown has more item or not.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchHintText → String?
-
Searchbar hint text
final
- trailingIcon → Widget?
-
Dropdown trailing icon
final
- value ↔ T?
-
getter/setter pair
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