ApiDropdown<T extends Object> constructor

const ApiDropdown<T extends Object>({
  1. Key? key,
  2. required String label,
  3. T? initialValue,
  4. required Future<ApiHandlerHttp> getApiHandler(),
  5. required String endpoint,
  6. required Map<String, dynamic> queryParams,
  7. required T fromJson(
    1. Map<String, dynamic>
    ),
  8. required String itemLabelBuilder(
    1. T
    ),
  9. required ValueChanged<T?> onChanged,
  10. 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,
});