getAbsolutePath function

String getAbsolutePath(
  1. String? path, {
  2. bool relative = true,
})

Implementation

String getAbsolutePath(String? path, {bool relative = true}) {
  var absolutePath = p.join(getWorkingDirectory()!, path);
  absolutePath = absolutePath.replaceAll('\n', '');
  return absolutePath;
}