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