AwesomeDropDown class Null safety

Inheritance

Constructors

AwesomeDropDown({required List<String> dropDownList, bool isPanDown = false, Color dropDownBGColor = Colors.white, Color dropDownIconBGColor = Colors.transparent, Color dropDownOverlayBGColor = Colors.white, double dropDownBorderRadius = 0, Widget dropDownIcon = const Icon(Icons.arrow_drop_down), Function? onDropDownItemClick, bool isBackPressedOrTouchedOutSide = false, Function? dropStateChanged, double dropDownBottomBorderRadius = 50, double dropDownTopBorderRadius = 50, String selectedItem = '', TextStyle selectedItemTextStyle = const TextStyle(color: Colors.black, fontSize: 16, fontWeight: FontWeight.normal), TextStyle dropDownListTextStyle = const TextStyle(color: Colors.grey, fontSize: 15, backgroundColor: Colors.transparent), double elevation = 5, double padding = 8, int numOfListItemToShow = 4})

Properties

background Color of dropdown, icon, and overLay,
final
this radius will be used to set the border of drop down
final
this radius is used to custom the bottom borders of drop down user can set drop down style as Rectangular, Oval, Rounded Borders and any other it helps user to make customize design of drop down
read / write
user can set any Icon or Image here because it accept any widget
final
background Color of dropdown, icon, and overLay,
final
The list of items the user can select If the list of items is null then an empty list will be shown
final
TextStyle for the value of list in drop down.
read / write
background Color of dropdown, icon, and overLay,
final
this radius is used to custom the top borders of drop down user can set drop down style as Rectangular, Oval, Rounded Borders and any other it helps user to make customize design of drop down
read / write
dropStateChanged Function?
this func is used to maintain the open and close state of drop down
read / write
elevation double
user can provide any elevation as per his choice
read / write
hashCode int
The hash code for this object.
@nonVirtual, read-only, inherited
isBackPressedOrTouchedOutSide bool
this variable is used to close the drop down is user touch outside or by back pressed
read / write
isPanDown bool
thi variable is used to detect panDown event of scaffold body
read / write
key Key?
Controls how one widget replaces another widget in the tree.
final, inherited
numOfListItemToShow int
user can define how many items of list would be shown when drop down opens, by default we set it's value to '4'
read / write
onDropDownItemClick Function?
this func is used for select any item from the list
read / write
padding double
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectedItem String
A placeholder text that is displayed by the dropdown
read / write
selectedItemTextStyle TextStyle
TextStyle for the hint.
read / write

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _AwesomeDropDownState
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.
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
@nonVirtual, inherited