addImpression method

void addImpression(
  1. Product product,
  2. String? impression
)

Implementation

void addImpression(final Product product, final String? impression) {
  final key = impression ?? "";
  final item = _productImpressions[key];
  if (item != null) {
    item.add(product);
  } else {
    _productImpressions[key] = [product];
  }
}