Locations constructor

Locations()

Implementation

Locations() {
  staticPluginRoot = _findStaticPluginRoot();
  pubspecYaml = _findPubspec();
  codeRoot = _findCodeRoot();
  if (codeRoot != null || staticPluginRoot != null) {
    distRoot = Directory(
      "${(pubspecYaml?.parent ?? codeRoot?.parent ?? staticPluginRoot!).path}/dist",
    );
  }
}