addEntity method

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

Implementation

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