getFeatureDir method

String getFeatureDir(
  1. String featureName
)

Implementation

String getFeatureDir(String featureName) {
  final dir = Directory(p.join(_projectDir, 'lib', 'features', featureName));
  if (!dir.existsSync()) {
    throw Exception('Feature "$featureName" does not exist.');
  }
  return dir.path;
}