classificationsFromNative function
Converts one native classifications head before its owner is released.
Implementation
Classifications classificationsFromNative(bindings.MpClassifications value) => Classifications(
categories: List<Category>.generate(
value.categories_count,
(int index) => categoryFromNative(value.categories[index]),
growable: false,
),
headIndex: value.head_index,
headName: nativeString(value.head_name),
);