getCollections method

Future<List<CollectionReference>?> getCollections()

Implementation

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