updateEntity method

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

Implementation

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