AdvancedDropDownSelectWidget constructor
const
AdvancedDropDownSelectWidget({
- required dynamic key,
- bool isReadOnly = false,
- String? initiallySelectedItem,
- GlobalKey<
FormState> ? formKey, - required bool isMandatory,
- TextDecorationModel? validationFailedDecoration,
- required List<
String> itemList, - Color? mandatoryIndicatorColor,
- required Function onChanged,
- bool showLabel = false,
- bool showError = false,
- bool showErrorBorder = false,
- Color? errorBorderColor,
- TextDecorationModel? lableTextDecoration,
- DropDownDecorationModel? decoration,
- List<
String> ? initiallySelectedItemsList, - Function? onClear,
- bool showCloseIcon = true,
- EdgeInsets dropDownButtonPadding = const EdgeInsets.only(top: 10, bottom: 10, left: 12, right: 12),
- bool isMulti = true,
- bool showSelectedValueInHint = false,
- double spaceBetweenIconAndSelectedItems = 6,
- dynamic dropdownStatus()?,
- String hintText = "Search",
- bool? showSearchIcon,
- bool isAddOnly = false,
- String defaultLabelText = "",
- TextDecorationModel? labelTextDecoration,
- bool showSelectAll = false,
Implementation
const AdvancedDropDownSelectWidget({
required key,
this.isReadOnly = false,
this.initiallySelectedItem,
this.formKey,
required this.isMandatory,
this.validationFailedDecoration,
required this.itemList,
this.mandatoryIndicatorColor,
required this.onChanged,
this.showLabel = false,
this.showError = false,
this.showErrorBorder = false,
this.errorBorderColor,
this.lableTextDecoration,
this.decoration,
this.initiallySelectedItemsList,
this.onClear,
this.showCloseIcon = true,
this.dropDownButtonPadding =
const EdgeInsets.only(top: 10, bottom: 10, left: 12, right: 12),
this.isMulti = true,
this.showSelectedValueInHint = false,
this.spaceBetweenIconAndSelectedItems = 6,
this.dropdownStatus,
this.hintText = "Search",
this.showSearchIcon,
this.isAddOnly = false,
this.defaultLabelText = "",
this.labelTextDecoration,
this.showSelectAll = false,
});