toRaw method
Implementation
@override
Pointer<RawNativeInputEvent> toRaw([int methodLength = 0]) {
List<int> methods = [
stringToNativeString(inputType).address,
stringToNativeString(data).address
];
Pointer<RawNativeInputEvent> rawEvent = super.toRaw(methods.length).cast<RawNativeInputEvent>();
Uint64List bytes = rawEvent.ref.bytes.asTypedList((rawEvent.ref.length + methods.length));
bytes.setAll(rawEvent.ref.length, methods);
return rawEvent;
}