designDirFor static method
Maps an architecture id to its design folder (relative to lib/).
Implementation
static String designDirFor(String architecture) {
switch (architecture) {
case 'clean':
return 'core/constants';
case 'mvvm':
return 'core/constants';
case 'feature-first':
return 'shared/theme';
case 'simple':
return 'theme';
default:
throw ArgumentError(
'Unknown architecture "$architecture". '
'Expected one of: clean, mvvm, feature-first, simple.',
);
}
}