toNative method
Implementation
Pointer<Pointer<NativeTouch>> toNative() {
Pointer<Pointer<NativeTouch>> touchList = malloc.allocate<NativeTouch>(sizeOf<NativeTouch>() * _items.length).cast<Pointer<NativeTouch>>();
for (int i = 0; i < _items.length; i ++) {
touchList[i] = _items[i].toNative();
}
return touchList;
}