add method

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

Add a ShopModel to the repository, cached

Implementation

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