sum function

int sum(
  1. int a,
  2. int b
)

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) => _bindings.sum(a, b);