listCollections method

  1. @override
Future<List<CollectionInfo>> listCollections()
override

Implementation

@override
Future<List<CollectionInfo>> listCollections() async {
  List<CollectionType> collectionTypeList = await client.listCollections();
  return collectionTypeList.map((collectionType) => CollectionInfo(name: collectionType.name, docsName: collectionType.metadata![docsNameKey] as String)).toList();
}