categories property

List<Category> categories

Implementation

List<Category> get categories {
  _categories ??= nameToCategory.values.where((c) => c.name != null).toList()
    ..sort();
  return _categories;
}