CustomDropdown class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CustomDropdown
Constructors
-
CustomDropdown({Key? key, Widget? label, String? labelText, TextStyle? labelStyle, String? nameKey, String? nameMapKey, List<
Map< ? items, String? hintText, Map<String, dynamic> >String, dynamic> ? selectedValue, TextStyle? hintStyle, TextStyle? selectedStyle, String? errorText, TextStyle? errorStyle, TextStyle? listItemStyle, BorderSide? errorBorderSide, BorderRadius? borderRadius, BorderSide? borderSide, Widget? fieldSuffixIcon, Widget? fieldPrefixIcon, dynamic onChanged(Map<String, dynamic> )?, EdgeInsets? contentPadding, void onRemoveClicked()?, Widget? basicWidget, double? customOverRelayWidth, String? validator(String?)?, AutovalidateMode? autovalidateMode, bool? excludeSelected = true, Color? fillColor = Colors.white, String? searchHintText}) -
CustomDropdown.search({Key? key, Widget? label, String? labelText, TextStyle? labelStyle, List<
Map< ? items, String? nameKey, String? nameMapKey, String? hintText, Map<String, dynamic> >String, dynamic> ? selectedValue, TextStyle? hintStyle, TextStyle? selectedStyle, String? errorText, TextStyle? errorStyle, TextStyle? listItemStyle, BorderSide? errorBorderSide, Map<String, String> ? headers, BorderRadius? borderRadius, BorderSide? borderSide, Widget? basicWidget, Widget? fieldSuffixIcon, Widget? fieldPrefixIcon, dynamic onChanged(Map<String, dynamic> )?, void onRemoveClicked()?, EdgeInsets? contentPadding, double? customOverRelayWidth, bool? excludeSelected = false, bool? canCloseOutsideBounds = true, Color? fillColor = Colors.white, String? validator(String?)?, AutovalidateMode? autovalidateMode, String? searchHintText})
Properties
- autovalidateMode → AutovalidateMode?
-
final
- basicWidget → Widget?
-
the widget you click at to open drop down
final
- borderRadius → BorderRadius?
-
final
- borderSide → BorderSide?
-
final
- canCloseOutsideBounds → bool?
-
final
- contentPadding → EdgeInsets?
-
final
- customOverRelayWidth → double?
-
final
- errorBorderSide → BorderSide?
-
final
- errorStyle → TextStyle?
-
final
- errorText → String?
-
final
- excludeSelected → bool?
-
final
- fieldPrefixIcon → Widget?
-
final
- fieldSuffixIcon → Widget?
-
final
- fillColor → Color?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, String> ? -
getter/setter pair
- hintStyle → TextStyle?
-
final
- hintText → String?
-
final
-
items
→ List<
Map< ?String, dynamic> > -
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- label → Widget?
-
final
- labelStyle → TextStyle?
-
final
- labelText → String?
-
final
- listItemStyle → TextStyle?
-
final
- nameKey → String?
-
final
- nameMapKey → String?
-
final
-
onChanged
→ dynamic Function(Map<
String, dynamic> )? -
final
- onRemoveClicked → void Function()?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchHintText → String?
-
final
- searchType → SearchType?
-
final
- selectedStyle → TextStyle?
-
final
-
selectedValue
→ Map<
String, dynamic> ? -
final
- validator → String? Function(String?)?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → CustomDropdownState -
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