rootPath top-level property
String
rootPath
returns the root path. On Linux and MacOS this will be '/' On Windows this will be r'C:'. The drive letter will depend on the drive of your present working directory (pwd).
Implementation
String get rootPath => rootPrefix(Directory.current.path);