categories property

Iterable<Category> categories

Implementation

Iterable<Category> get categories {
  _categories ??= categoryNames
      .map((n) => package.nameToCategory[n])
      .where((c) => c != null)
      .toList()
    ..sort();
  return _categories;
}