fromNativeArray static method

Iterable<Category> fromNativeArray(
  1. Pointer<Category> structs,
  2. int count
)

Accepts a pointer to a list of structs, and a count representing the length of the list, and returns a list of pure-Dart Category instances.

Implementation

static Iterable<Category> fromNativeArray(
  Pointer<bindings.Category> structs,
  int count,
) sync* {
  for (int i = 0; i < count; i++) {
    yield Category.native(structs + i);
  }
}