fib method

int fib(
  1. int n
)

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 fib(
  int n,
) {
  return _fib(
    n,
  );
}