dirFor method

String dirFor(
  1. LibraryEntry entry
)

Scenario directory of entry: the shared contractDir for the single-library shape, one subdirectory per solution otherwise.

Implementation

String dirFor(LibraryEntry entry) => libraries.isEmpty
    ? contractDir
    : '$contractDir/${entry.name}';