fromPath static method

RojoResolver fromPath(
  1. String projectJsonPath
)

Implementation

static RojoResolver fromPath(String projectJsonPath) {
  final resolver = RojoResolver();
  final file = File(projectJsonPath);
  if (!file.existsSync()) return resolver;
  final json = jsonDecode(file.readAsStringSync()) as Map<String, dynamic>;
  resolver._parseTree(
    p.dirname(projectJsonPath),
    '',
    json['tree'] as Map<String, dynamic>,
    doNotPush: true,
  );
  return resolver;
}