example property

Entrypoint? example

Gets the Entrypoint package for the current working directory.

This will be null if the example folder doesn't have a pubspec.yaml.

Implementation

Entrypoint? get example {
  if (_example != null) return _example;
  if (!fileExists(workspaceRoot.path('example', 'pubspec.yaml'))) {
    return null;
  }
  return _example = Entrypoint(workspaceRoot.path('example'), cache);
}