designDirFor static method

String designDirFor(
  1. String architecture
)

Maps an architecture id to its design-system folder (relative to lib/).

New projects (schema_version >= 2) use this path. Older projects keep tokens under core/constants, shared/theme, or theme.

Implementation

static String designDirFor(String architecture) {
  try {
    return DesignPaths.systemDirFromId(architecture);
  } on FormatException {
    throw ArgumentError(
      'Unknown architecture "$architecture". '
      'Expected one of: clean, mvvm, feature-first, simple.',
    );
  }
}