ApiDropdown<T extends Object> constructor
const
ApiDropdown<T extends Object> ({
- Key? key,
- required String label,
- T? initialValue,
- required Future<
ApiHandlerHttp> getApiHandler(), - required String endpoint,
- required Map<
String, dynamic> queryParams, - required T fromJson(),
- required String itemLabelBuilder(
- T
- required ValueChanged<
T?> onChanged, - bool hasSearch = false,
Implementation
const ApiDropdown({
super.key,
required this.label,
this.initialValue,
required this.getApiHandler,
required this.endpoint,
required this.queryParams,
required this.fromJson,
required this.itemLabelBuilder,
required this.onChanged,
this.hasSearch = false,
});