updateEntity method

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

Implementation

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