convertFieldsToStrings method

  1. @override
Iterable<String> convertFieldsToStrings(
  1. Iterable<TaxonomyAllergenField> fields
)
override

Converts the given list of fields to their corresponding query string values.

Implementation

@override
Iterable<String> convertFieldsToStrings(
    Iterable<TaxonomyAllergenField> fields) {
  return fields
      .where((TaxonomyAllergenField field) => !ignoredFields.contains(field))
      .map<String>((TaxonomyAllergenField field) => field.offTag);
}