addEntity method

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

Implementation

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