fromNativeArray static method

Iterable<Classifications> fromNativeArray(
  1. Pointer<Classifications> 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 Classifications instances.

Implementation

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