collections property

List<String?> get collections

The list of collections nested inside this document.

Implementation

List<String?> get collections {
  List<String?> collections = [];

  if (_snapshot['collections'] != null) {
    List<dynamic> items = _snapshot['collections'] as List<dynamic>;
    for (var item in items) {
      String? key = item["name"].toString();
      collections.add(key);
    }
  }
  return collections;
}