appDirectory static method

String appDirectory(
  1. List<String> arguments
)

Implementation

static String appDirectory(List<String> arguments) {
  for (final arg in arguments) {
    if (arg.startsWith('--app-dir=')) {
      return arg.substring('--app-dir='.length);
    }
  }
  return Directory.current.path;
}