getProcessName method Null safety
- int pid
returns the name of the process for the given pid.
Implementation
String? getProcessName(int pid) {
if (Settings().isWindows) {
return getWindowsProcessName(pid);
} else {
return _getLinuxProcessName(pid);
}
}