deleteAll method

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

Implementation

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