DropDownTextField class
Constructors
DropDownTextField ({Key ? key , dynamic controller , dynamic initialValue , required List <DropDownValueModel > dropDownList , EdgeInsets ? padding , TextStyle ? textStyle , ValueSetter ? onChanged , FormFieldValidator <String > ? validator , bool isEnabled = true , bool enableSearch = false , bool readOnly = true , double dropdownRadius = 12 , InputDecoration ? textFieldDecoration , IconProperty ? dropDownIconProperty , int dropDownItemCount = 6 , FocusNode ? searchFocusNode , FocusNode ? textFieldFocusNode , bool searchAutofocus = false , InputDecoration ? searchDecoration , bool ? searchShowCursor , TextInputType ? searchKeyboardType , double listSpace = 0 , bool clearOption = true , IconProperty ? clearIconProperty , ListPadding ? listPadding , TextStyle ? listTextStyle , TextInputType ? keyboardType , AutovalidateMode ? autovalidateMode , Color ? dropdownColor })
const
DropDownTextField.multiSelection ({Key ? key , dynamic controller , bool displayCompleteItem = false , dynamic initialValue , required List <DropDownValueModel > dropDownList , EdgeInsets ? padding , TextStyle ? textStyle , ValueSetter ? onChanged , FormFieldValidator <String > ? validator , bool isEnabled = true , double dropdownRadius = 12 , IconProperty ? dropDownIconProperty , InputDecoration ? textFieldDecoration , int dropDownItemCount = 6 , FocusNode ? searchFocusNode , FocusNode ? textFieldFocusNode , double listSpace = 0 , bool clearOption = true , IconProperty ? clearIconProperty , Color ? submitButtonColor , String ? submitButtonText , TextStyle ? submitButtonTextStyle , ListPadding ? listPadding , TextStyle ? listTextStyle , CheckBoxProperty ? checkBoxProperty , AutovalidateMode ? autovalidateMode , Color ? dropdownColor })
const
Properties
autovalidateMode
→ AutovalidateMode ?
final
checkBoxProperty
→ CheckBoxProperty ?
customize checkbox property
final
clearIconProperty
→ IconProperty ?
customize Clear icon size and color
final
clearOption
→ bool
by set clearOption=false to hide clear suffix icon button from textfield.
final
controller
→ dynamic
single and multiple dropdown controller.
It must be type of SingleValueDropDownController or MultiValueDropDownController.
final
displayCompleteItem
→ bool
set displayCompleteItem=true, if you want show complete list of item in textfield else it will display like "number_of_item item selected"
final
dropdownColor
→ Color ?
set dropdown overlay color
final
dropDownIconProperty
→ IconProperty ?
customize dropdown icon size and color
final
dropDownItemCount
→ int
Maximum number of dropdown item to display,default value is 6
final
dropDownList
→ List <DropDownValueModel >
dropDownList,List of dropdown values
List
final
dropdownRadius
→ double
define the radius of dropdown List ,default value is 12
final
enableSearch
→ bool
by setting enableSearch=true enable search option in dropdown,as of now this feature enabled only for single selection dropdown
final
hashCode
→ int
The hash code for this object.
no setter inherited
initialValue
→ dynamic
initial value ,if it is null or not exist in dropDownList then it will not display value.
final
isEnabled
→ bool
by setting isEnabled=false to disable textfield,default value true
final
isMultiSelection
→ bool
final
key
→ Key ?
Controls how one widget replaces another widget in the tree.
final inherited
keyboardType
→ TextInputType ?
final
listPadding
→ ListPadding ?
dropdown List item padding
final
listSpace
→ double
space between textfield and list ,default value is 0
final
listTextStyle
→ TextStyle ?
dropdown list item text style
final
multiController
→ MultiValueDropDownController ?
multi dropdown controller
final
onChanged
→ ValueSetter ?
function,called when value selected from dropdown.
for single Selection Dropdown it will return single DropDownValueModel object,
and for multi Selection Dropdown ,it will return list of DropDownValueModel object,
final
padding
→ EdgeInsets ?
final
readOnly
→ bool
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
searchAutofocus
→ bool
by setting searchAutofocus=true to autofocus search textfield,only applicable if enableSearch=true,
///default value is false
final
searchDecoration
→ InputDecoration ?
override default search decoration
final
searchFocusNode
→ FocusNode ?
final
searchKeyboardType
→ TextInputType ?
override default search keyboard type,only applicable if enableSearch=true,
final
searchShowCursor
→ bool ?
by setting searchShowCursor=false to hide cursor from search textfield,only applicable if enableSearch=true,
final
singleController
→ SingleValueDropDownController ?
single dropdown controller,
final
submitButtonColor
→ Color ?
multi dropdown submit button color
final
submitButtonText
→ String ?
multi dropdown submit button text
final
submitButtonTextStyle
→ TextStyle ?
multi dropdown submit button text style
final
textFieldDecoration
→ InputDecoration ?
override default textfield decoration
final
textFieldFocusNode
→ FocusNode ?
final
textStyle
→ TextStyle ?
final
validator
→ FormFieldValidator <String > ?
final