Add support for retrieving current process user ID (UID) #59860
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
triage-automation
See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot.
type-enhancement
A request for a change that isn't a bug
Currently, we have the
pid
property in thedart:io
library, which allows retrieving the current process ID. However, there is no built-in method or property to fetch the User ID (UID) of the current user running the Dart program.Adding support for a
uid
property or method would make it easier to retrieve the current user's UID directly in Dart without relying on platform-specific code or external commands.The text was updated successfully, but these errors were encountered: