add method

  1. @override
Future<ShopFrontModel> add(
  1. ShopFrontModel value
)
override

Add a ShopFrontModel to the repository, cached

Implementation

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