addEntity method

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

Implementation

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