int pid

Returns the PID of the current process.

Source

int get pid => _ProcessUtils._pid(null);