Builder.fromDirectory constructor

Builder.fromDirectory(
  1. String directory
)

Create a new builder from a directory path.

Implementation

factory Builder.fromDirectory(String directory) {
  return Builder(
    segmentDocument: Segment.fromDirectory(directory),
    rootDirectory: directory,
  );
}