deleteAll method

  1. @override
Future<void> deleteAll()
override

Implementation

@override
Future<void> deleteAll() {
  return chatDashboardCollection.get().then((snapshot) {
    for (DocumentSnapshot ds in snapshot.docs) {
      ds.reference.delete();
    }
  });
}