toJValues function
Converts passed arguments to JValue array for use in methods that take arguments.
int, bool, double and JObject types are converted out of the box. wrap values in types such as JValueInt to convert to other primitive types instead.
Implementation
Pointer<JValue> toJValues(List<dynamic> args, {required Allocator allocator}) {
final result = allocator<JValue>(args.length);
for (int i = 0; i < args.length; i++) {
final arg = args[i];
final pos = result + i;
_fillJValue(pos, arg);
}
return result;
}