sum method
A very short-lived native function.
For very short-lived functions, it is fine to call them on the main isolate. They will block the Dart execution while running the native function, so only do this for native functions which are guaranteed to be short-lived.
Implementation
int sum(
int a,
int b,
) {
return _sum(
a,
b,
);
}