initTerms method

  1. @override
List<String> initTerms(
  1. Product product
)
override

Returns the terms as they were initially in the product.

WARNING: this list must be copied; if not you may alter the product. cf. https://github.com/openfoodfacts/smooth-app/issues/3529

Implementation

@override
List<String> initTerms(Product product) =>
    product.labelsTagsInLanguages?[getLanguage()] ?? <String>[];