getCollections method

Future<List<CollectionReference>> getCollections()

Implementation

Future<List<CollectionReference>> getCollections() async {
  final List<String> collections = await listCollections();
  return List<CollectionReference>.from(
    collections.map(
      (String path) => CollectionReference._(parent: null, path: path),
    ),
  );
}