getUsers function
Retrieves the list of Groups for the current user.
Implementation
List<Passwd> getUsers() {
final users = <Passwd>[];
Passwd? passwd;
while ((passwd = getpwent()) != null) {
users.add(passwd!);
}
endpwent();
return users;
}