getChildren method

Future<List<SessionRecord>> getChildren(
  1. String? parentId
)

The direct children of parentId (roots when null), in file order.

Implementation

Future<List<SessionRecord>> getChildren(String? parentId) async {
  return [
    for (final entry in await _storage.getEntries())
      if (entry.parentId == parentId) entry,
  ];
}