Category constructor

Category({
  1. required int index,
  2. required double score,
  3. required String? categoryName,
  4. required String? displayName,
})

Initializes a Category instance with mock values for testing.

Implementation

Category({
  required int index,
  required double score,
  required String? categoryName,
  required String? displayName,
})  : _index = index,
      _score = score,
      _categoryName = categoryName,
      _displayName = displayName,
      _pointer = null;