CoolDropdown class Null safety

Inheritance

Constructors

CoolDropdown({required List dropdownList, required Function onChange, Function? onOpen, dynamic resultIcon, dynamic placeholderTS, bool dropdownItemReverse = false, bool resultReverse = false, bool resultIconRotation = true, bool isTriangle = true, bool isResultLabel = true, String placeholder = '', double resultWidth = 220, double resultHeight = 50, double? dropdownWidth, double dropdownHeight = 300, double dropdownItemHeight = 50, Alignment resultAlign = Alignment.centerLeft, String dropdownAlign = 'center', String triangleAlign = 'center', Alignment dropdownItemAlign = Alignment.centerLeft, MainAxisAlignment dropdownItemMainAxis = MainAxisAlignment.spaceBetween, MainAxisAlignment resultMainAxis = MainAxisAlignment.spaceBetween, EdgeInsets resultPadding = const EdgeInsets.only(left: 10, right: 10), EdgeInsets dropdownItemPadding = const EdgeInsets.only(left: 10, right: 10), EdgeInsets dropdownPadding = const EdgeInsets.only(left: 10, right: 10), EdgeInsets selectedItemPadding = const EdgeInsets.only(left: 10, right: 10), dynamic resultBD, dynamic dropdownBD, dynamic selectedItemBD, dynamic selectedItemTS, dynamic unselectedItemTS, dynamic resultTS, double labelIconGap = 10, double dropdownItemGap = 5, double dropdownItemTopGap = 10, double dropdownItemBottomGap = 10, double resultIconLeftGap = 10, double gap = 30, double triangleWidth = 20, double triangleHeight = 20, double triangleLeft = 0, bool isAnimation = true, bool isResultIconLabel = true, double resultIconRotationValue = 0.5, bool isDropdownLabel = true, double iconSize = 10, dynamic defaultValue})

Properties

defaultValue Map
read / write
read / write
read / write
read / write
read / write
read / write
read / write
read / write
read / write
read / write
read / write
read / write
read / write
read / write
read / write
gap double
read / write
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
iconSize double
read / write
isAnimation bool
read / write
isDropdownLabel bool
read / write
isResultIconLabel bool
read / write
isResultLabel bool
read / write
isTriangle bool
read / write
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
labelIconGap double
read / write
onChange Function
read / write
onOpen Function?
read / write
placeholder String
read / write
placeholderTS TextStyle
read / write
resultAlign Alignment
read / write
resultBD BoxDecoration
read / write
resultHeight double
read / write
resultIcon Widget
read / write
resultIconLeftGap double
read / write
resultIconRotation bool
read / write
resultIconRotationValue double
read / write
resultMainAxis MainAxisAlignment
read / write
resultPadding EdgeInsets
read / write
resultReverse bool
read / write
resultTS TextStyle
read / write
resultWidth double
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
selectedItemBD BoxDecoration
read / write
selectedItemPadding EdgeInsets
read / write
selectedItemTS TextStyle
read / write
triangleAlign String
read / write
triangleHeight double
read / write
triangleLeft double
read / write
triangleWidth double
read / write
unselectedItemTS TextStyle
read / write

Methods

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