getProductBrandsList function

List<String> getProductBrandsList(
  1. Product product,
  2. AppLocalizations appLocalizations
)

Implementation

List<String> getProductBrandsList(
  Product product,
  AppLocalizations appLocalizations,
) {
  final String? brands = _clearString(product.brands);
  if (brands == null) {
    return <String>[];
  }

  const String sep = ',';
  return formatProductBrands(brands, separator: sep).split(sep);
}