getUserNameByUID function
the simplified library provides a number of the more obvious entry points for common operations.
These functions simply wrap existing posix functions using modern naming conventions.
Implementation
String getUserNameByUID(int uid) {
final pwd = getpwuid(uid);
return pwd.username;
}