EnhancedDropDown.withData constructor

EnhancedDropDown.withData({
  1. required String dropdownLabelTitle,
  2. required List? dataSource,
  3. required String defaultOptionText,
  4. required ValueChanged valueReturned,
  5. 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;