KSSelectDropDownWidget<T extends KSDropDownModel> class
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatefulWidget
- KSSelectDropDownWidget
Constructors
-
KSSelectDropDownWidget({Key? key, required List<
T> items, required List<T> selectedItems, required dynamic getSelectedItem(List<T> ), String? label, String? dropdownTitle = '', dynamic displayContentItem(T)?, KSDropDownEnum? ksDropDownEnum = KSDropDownEnum.single, KSDropDownContentModeEnum? ksDropDownContentModeEnum = KSDropDownContentModeEnum.list, bool? showSearch = false, double? dropdownHeight}) -
const
Properties
- displayContentItem → (dynamic Function(T)?)
-
displayContentItem you can display dropdown item based on your localize method
by default, it displays name attribute of this class KSDropDownModel
final
- dropdownHeight → double?
-
final
- dropdownTitle → String?
-
final
-
getSelectedItem
→ dynamic Function(List<
T> ) -
getSelectedItem method to select dropdown value
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
items
→ List<
T> -
items dropdown contents
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- ksDropDownContentModeEnum → KSDropDownContentModeEnum?
-
ksDropDownContentModeEnum to set up dropdown content to either list view or wrap view
by default, it displays list view
to set up wrap view, you may set KSDropDownContentModeEnum.wrap
final
- ksDropDownEnum → KSDropDownEnum?
-
ksDropDownEnum to set up single or multiple choice
by default, it displays single choice
to set up multiple choice, you may set KSDropDownEnum.multiple
final
- label → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedItems
→ List<
T> -
selectedItems the value after selection
final
- showSearch → bool?
-
final
Methods
-
createElement(
) → StatefulElement -
Creates a StatefulElement to manage this widget's location in the tree.
inherited
-
createState(
) → State< KSSelectDropDownWidget< 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
-
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}) → 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