EnhancedDropDown.withData constructor Null safety

EnhancedDropDown.withData(
  1. {required String dropdownLabelTitle,
  2. required List<String>? dataSource,
  3. required String defaultOptionText,
  4. required ValueChanged<String> valueReturned}
)

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})
    : urlToFetchData = null;