categoryIndex property Null safety

int categoryIndex

The position in the container order for this category.

Implementation

int get categoryIndex {
  _categoryIndex ??= package.categories.indexOf(this);
  return _categoryIndex;
}