categoriesFromNative function
Converts one native category list before its owner is released.
Implementation
List<Category> categoriesFromNative(bindings.MpCategories value) => List<Category>.generate(
value.categories_count,
(int index) => categoryFromNative(value.categories[index]),
growable: false,
);