CoolDropdown class Null safety
- Inheritance
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- CoolDropdown
Constructors
- CoolDropdown({required List dropdownList, required Function onChange, 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 = 200, 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, dynamic defaultValue, required Key key})
Properties
- defaultValue ↔ Map
-
read / write
- dropdownAlign ↔ String
-
read / write
- dropdownBD ↔ BoxDecoration
-
read / write
- dropdownHeight ↔ double
-
read / write
- dropdownItemAlign ↔ Alignment
-
read / write
- dropdownItemBottomGap ↔ double
-
read / write
- dropdownItemGap ↔ double
-
read / write
- dropdownItemHeight ↔ double
-
read / write
- dropdownItemMainAxis ↔ MainAxisAlignment
-
read / write
- dropdownItemPadding ↔ EdgeInsets
-
read / write
- dropdownItemReverse ↔ bool
-
read / write
- dropdownItemTopGap ↔ double
-
read / write
- dropdownList ↔ List
-
read / write
- dropdownPadding ↔ EdgeInsets
-
read / write
- dropdownWidth ↔ double
-
read / write
- gap ↔ double
-
read / write
- hashCode → int
-
The hash code for this object. [...]
@nonVirtual, read-only, inherited
- 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. [...]
read / write, override-getter
- labelIconGap ↔ double
-
read / write
- onChange ↔ 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