CkDropDown<T> class

Inheritance
Available extensions

Constructors

CkDropDown({required String hint, required List<T> items, required dynamic onChanged(T? value), required Widget nameBuilder(CkDropDownNameBuilderProperty<T> property), bool isRequired = false, Color? borderColor, Color? backgroundColor, Color? menuBackgroundColor, TextStyle? textStyle, bool isLoading = false, double? borderRadius, Widget? prefix, T? initalValue, bool enableInitalSelection = true, bool disabled = false, Key? key, FontStyle? fontStyle, EdgeInsets? contentPadding, Widget selectedItemBuilder(T value)?, TextStyle? hintStyle, CkBorderType borderType = CkBorderType.outline, double borderWidth = 1.2, Widget? suffixIcon, CkDropDownType dropDownType = CkDropDownType.menu, double? menuWidth, bool isSeparated = false, AlignmentGeometry? menuItemAlignment, EdgeInsets? itemPadding, double menuElevation = 1.0, Color? menuBorderColor, double menuBorderRadius = 8, Widget? footer, double? menuMaxHeight})
const

Properties

backgroundColor → Color?
final
borderColor → Color?
final
borderRadius → double?
final
borderType → CkBorderType
final
borderWidth → double
final
center → Widget

Available on Widget, provided by the Alignments extension

no setter
contentPadding → EdgeInsets?
final
disabled → bool
When disabled is true the picker cannot be opened and the widget is rendered with reduced opacity to signal the non-interactive state. The initial value is still displayed normally.
final
final
enableInitalSelection → bool
final
end → Widget

Available on Widget, provided by the Alignments extension

no setter
fontStyle → FontStyle?
final
final
hashCode → int
The hash code for this object.
no setterinherited
hint → String
final
hintStyle → TextStyle?
final
initalValue → T?
final
isLoading → bool
final
isRequired → bool
final
isSeparated → bool
final
itemPadding → EdgeInsets?
final
items → List<T>
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
marginZero → Widget

Available on Widget, provided by the WidgetMarginX extension

no setter
final
final
final
final
final
final
final
nameBuilder → Widget Function(CkDropDownNameBuilderProperty<T> property)
final
onChanged → dynamic Function(T? value)
final
paddingZero → Widget

Available on Widget, provided by the WidgetPaddingX extension

no setter
prefix → Widget?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selectedItemBuilder → Widget Function(T value)?
final
sliverBox → Widget

Available on Widget, provided by the WidgetSliverBoxX extension

no setter
start → Widget

Available on Widget, provided by the Alignments extension

no setter
suffixIcon → Widget?
final
textStyle → TextStyle?
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<CkDropDown<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
marginAll(double margin) → Widget

Available on Widget, provided by the WidgetMarginX extension

marginOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget

Available on Widget, provided by the WidgetMarginX extension

marginSymmetric({double horizontal = 0.0, double vertical = 0.0}) → Widget

Available on Widget, provided by the WidgetMarginX extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paddingAll(double padding) → Widget

Available on Widget, provided by the WidgetPaddingX extension

paddingOnly({double left = 0.0, double top = 0.0, double right = 0.0, double bottom = 0.0}) → Widget

Available on Widget, provided by the WidgetPaddingX extension

paddingSymmetric({double horizontal = 0.0, double vertical = 0.0}) → Widget

Available on Widget, provided by the WidgetPaddingX extension

toAr(num width, num height) → Widget

Available on Widget, provided by the WidgetAspectRatio extension

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