add method

Add a ProductDisplayModel to the repository, cached

Implementation

@override
Future<ProductDisplayModel> add(ProductDisplayModel value) {
  return reference.add(value).then((newValue) {
    fullCache[value.documentID] = newValue;
    return newValue;
  });
}