Dropinity<FullResponse, Model> constructor
const
Dropinity<FullResponse, Model> ({
- Key? key,
- bool enableMultiSelection = false,
- Widget multiSelectionItemBuilder(
- BuildContext context,
- Model element
- FutureOr<
void> onListChanged(- List<
Model> values
- List<
- List<
Model> initialValues = const [], - Curve curve = Curves.linear,
- FutureOr<
void> onCollapse()?, - FutureOr<
void> onExpand()?, - AutovalidateMode? autoValidateMode,
- Widget errorWidget(
- String errorMsg
- Color listBackgroundColor = Colors.white,
- Widget? dropdownTitle,
- TextFieldData<
Model> ? textFieldData, - String? validator(
- Model?
- double? listHeight,
- required DropinityController controller,
- required ButtonData<
Model> buttonData, - required List<
Model> ? values, - required ValuesData<
Model> ? valuesData, - required FutureOr<
void> onChanged(- Model val
- bool showNoDataAlert = false,
- bool maintainState = false,
normal constructor for local dropdown
Implementation
const Dropinity({
super.key,
this.enableMultiSelection = false,
this.multiSelectionItemBuilder,
this.onListChanged,
this.initialValues = const [],
this.curve = Curves.linear,
this.onCollapse,
this.onExpand,
this.autoValidateMode,
this.errorWidget,
this.listBackgroundColor = Colors.white,
this.dropdownTitle,
this.textFieldData,
this.validator,
this.listHeight,
required this.controller,
required this.buttonData,
required this.values,
required this.valuesData,
required this.onChanged,
this.showNoDataAlert = false,
this.maintainState = false,
}) : pagifyData = null,
_dropdownType = DropdownType.none;