toNative method
Implementation
Pointer<NativeBoundingClientRect> toNative() {
Pointer<NativeBoundingClientRect> nativeBoundingClientRect = malloc.allocate<NativeBoundingClientRect>(sizeOf<NativeBoundingClientRect>());
nativeBoundingClientRect.ref.width = width;
nativeBoundingClientRect.ref.height = height;
nativeBoundingClientRect.ref.x = x;
nativeBoundingClientRect.ref.y = y;
nativeBoundingClientRect.ref.top = top;
nativeBoundingClientRect.ref.right = right;
nativeBoundingClientRect.ref.left = left;
nativeBoundingClientRect.ref.bottom = bottom;
return nativeBoundingClientRect;
}