listCollections method
List all collections in this database
Implementation
Future<List<CollectionInfo>> listCollections() async {
final result = await _channel.invokeMethod<List<dynamic>>(
'listCollections',
{'databaseId': id},
);
if (result == null) return [];
return result
.map((item) => CollectionInfo.fromMap(item as Map))
.toList();
}