updateEntity method

  1. @override
Future<ProductEntity> updateEntity(
  1. String documentID,
  2. ProductEntity value
)
override

Implementation

@override
Future<ProductEntity> updateEntity(String documentID, ProductEntity value) {
  return productCollection
      .doc(documentID)
      .update(value.toDocument())
      .then((_) => value);
}