HcSearchableDropdown<T> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- HcSearchableDropdown
- Available extensions
Constructors
-
HcSearchableDropdown.new({Key? key, required List<
DropdownMenuItem< ? items, required Function onChanged, required T? value, TextStyle? style, dynamic searchHint, dynamic hint, dynamic disabledHint, dynamic icon = const Icon(Icons.arrow_drop_down), dynamic underline, Color? iconEnabledColor, Color? iconDisabledColor, double iconSize = 24.0, bool isExpanded = false, bool isCaseSensitiveSearch = false, dynamic closeButton = "Close", bool displayClearIcon = false, Icon clearIcon = const Icon(Icons.clear), Function? onClear, Function? selectedValueWidgetFn, TextInputType keyboardType = TextInputType.text, Function? validator, dynamic label, Function? searchFn, bool multipleSelection = false, List<T> >int> selectedItems = const [], dynamic doneButton, Function? displayItem, bool dialogBox = true, bool readOnly = false, }) -
const
-
HcSearchableDropdown.multiple({Key? key, required List<
DropdownMenuItem< items, required Function onChanged, T? value, TextStyle? style, dynamic searchHint, dynamic hint, dynamic disabledHint, dynamic icon = const Icon(Icons.arrow_drop_down), dynamic underline, dynamic doneButton, dynamic label, dynamic closeButton = "Close", bool displayClearIcon = true, Icon clearIcon = const Icon(Icons.clear), Color? iconEnabledColor, Color? iconDisabledColor, double iconSize = 24.0, bool isExpanded = false, List<T> >int> selectedItems = const [], bool isCaseSensitiveSearch = false, Function? searchFn, Function? onClear, Function? selectedValueWidgetFn, TextInputType keyboardType = TextInputType.text, Function? validator, bool assertUniqueValue = true, Function? displayItem, bool dialogBox = true, bool readOnly = false, }) -
Search choices Widget with a multiple choice that opens a dialog or a menu to let the user do the selection conveniently with a search.
factory
-
HcSearchableDropdown.single({Key? key, required List<
DropdownMenuItem< items, Function? onChanged, required T value, TextStyle? style, dynamic searchHint, dynamic hint, dynamic disabledHint, dynamic icon = const Icon(Icons.arrow_drop_down), dynamic underline, dynamic doneButton, dynamic label, dynamic closeButton = "Close", bool displayClearIcon = true, Icon clearIcon = const Icon(Icons.clear), Color? iconEnabledColor, Color? iconDisabledColor, double iconSize = 24.0, bool isExpanded = false, bool isCaseSensitiveSearch = false, Function? searchFn, Function? onClear, Function? selectedValueWidgetFn, TextInputType keyboardType = TextInputType.text, Function? validator, bool assertUniqueValue = true, Function? displayItem, bool dialogBox = true, bool readOnly = false, })T> > -
Search choices Widget with a single choice that opens a dialog or a menu to let the user do the selection conveniently with a search.
factory
Properties
- clearIcon → Icon
-
final
- closeButton → dynamic
-
final
- dialogBox → bool
-
final
- disabledHint → dynamic
-
final
- displayClearIcon → bool
-
final
- displayItem → Function?
-
final
- doneButton → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hint → dynamic
-
final
- icon → dynamic
-
final
- iconDisabledColor → Color?
-
final
- iconEnabledColor → Color?
-
final
- iconSize → double
-
final
- isCaseSensitiveSearch → bool
-
final
- isExpanded → bool
-
final
-
items
→ List<
DropdownMenuItem< ?T> > -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- keyboardType → TextInputType
-
final
- label → dynamic
-
final
-
final
-
final
- multipleSelection → bool
-
final
- onChanged → Function
-
final
- onClear → Function?
-
final
- readOnly → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchFn → Function?
-
final
- searchHint → dynamic
-
final
-
selectedItems
→ List<
int> -
final
- selectedValueWidgetFn → Function?
-
final
- style → TextStyle?
-
final
- underline → dynamic
-
final
- validator → Function?
-
final
- value → T?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → HcSearchableDropdownState< 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
-
hcCenter(
{double? heightFactor, double? widthFactor}) → Widget -
Available on Widget?, provided by the HcWidgetExtension extension
set parent widget in center -
Available on Widget?, provided by the HcWidgetExtension extension
Launch a new screen -
hcProgress(
{Color color = Colors.blue}) → Widget -
Available on Widget?, provided by the HcWidgetExtension extension
Circular Progressbar -
hcVisible(
bool visible, {Widget? defaultWidget}) → Widget -
Available on Widget?, provided by the HcWidgetExtension extension
set visibility -
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