userDirectory
userDirectory
Example:
import "package:system_info2/system_info2.dart";
print("Home Directory : ${SysInfo.userDirectory}");Last updated
Was this helpful?
Generally referred to as your home directory.
On most platforms, this is the content of the HOME environment variable.
If you are going to do further manipulation of paths and files you should be aware of the following packages:
Typical values are:
Linux - /home/myusername
MacOS - /usres/username
Windows - \user\username
import "package:system_info2/system_info2.dart";
print("Home Directory : ${SysInfo.userDirectory}");Please help expand the list of examples by raising an issue with examples on the onpub.dev github site.
Last updated
Was this helpful?
Was this helpful?