getItemsInCollectionSync method

  1. @override
List<String> getItemsInCollectionSync(
  1. String collection
)
override

Returns a list of all item IDs in a collection.

Implementation

@override
List<String> getItemsInCollectionSync(String collection) {
  final path = _getCollectionPath(collection);
  return _workDbInternalSync
      .lsSync(path)
      .map((f) => f.replaceFirst('$path/', ''))
      .where((f) => f.isNotEmpty && !f.contains('/'))
      .toList();
}