EnhancedDropDown.withEndpoint constructor
EnhancedDropDown.withEndpoint({
- required String dropdownLabelTitle,
- required String defaultOptionText,
- required Uri? urlToFetchData,
- required ValueChanged valueReturned,
- String? fieldToPresent,
Constructor that accepts an endpoint in URI form to fetch the data from
Implementation
EnhancedDropDown.withEndpoint(
{required this.dropdownLabelTitle,
required this.defaultOptionText,
required this.urlToFetchData,
required this.valueReturned,
this.fieldToPresent})
: dataSource = null;