pathApp top-level property
String
get
pathApp
Retrieves the base directory path of the application.
This getter uses the script path from Platform.script and navigates up two levels to return the root application path.
Example usage:
String appPath = pathApp;
Implementation
String get pathApp {
var scriptPath = Platform.script.toFilePath();
return Directory(scriptPath).parent.parent.path;
}