EnhancedDropDown.withData constructor
EnhancedDropDown.withData({
- required String dropdownLabelTitle,
- required List? dataSource,
- required String defaultOptionText,
- required ValueChanged valueReturned,
- String? fieldToPresent,
Constructor that accepts a list of elements to be the data source for the dropdown
Implementation
EnhancedDropDown.withData(
{required this.dropdownLabelTitle,
required this.dataSource,
required this.defaultOptionText,
required this.valueReturned,
this.fieldToPresent})
: urlToFetchData = null;