execute method
Executes the project creation process
Implementation
Future<void> execute(ProjectConfig config) async {
// Validate configuration
if (!config.isValid) {
throw InvalidProjectConfigException('Invalid project configuration');
}
// Check if Flutter is installed
final isFlutterInstalled = await _repository.isFlutterInstalled();
if (!isFlutterInstalled) {
throw FlutterNotInstalledException('Flutter is not installed or not available in PATH');
}
// Create the project with all configurations
await _repository.createProject(config);
}