indices property

Uint32List get indices

Implementation

Uint32List get indices {
  _ensureNotDisposed();
  final output = calloc<Uint32>(indexCount);
  try {
    if (_api.copyIndices(_handle, output, indexCount) == 0) {
      throw StateError('Native model index copy failed.');
    }
    return Uint32List.fromList(output.asTypedList(indexCount));
  } finally {
    calloc.free(output);
  }
}