toRaw method
Implementation
@override
Pointer<RawNativeMouseEvent> toRaw([int methodLength = 0]) {
List<int> methods = [
doubleToUint64(clientX),
doubleToUint64(clientY),
doubleToUint64(offsetX),
doubleToUint64(offsetY)
];
Pointer<RawNativeMouseEvent> rawEvent = super.toRaw(methods.length).cast<RawNativeMouseEvent>();
Uint64List bytes = rawEvent.ref.bytes.asTypedList((rawEvent.ref.length + methods.length));
bytes.setAll(rawEvent.ref.length, methods);
return rawEvent;
}