generate method
Implementation
Future<void> generate() async {
try {
print('==================================');
print('🚀 FlutterProjectGenerator STARTED...');
print('==================================');
print('🟢 FlutterProjectGenerator Configs:');
print('- $configs');
print('==================================');
print('');
print('👉 Version');
print('Flutter: ${await _getFlutterVersion()}');
print('');
print('👉 Create project');
await _createProject();
print('');
print('👉 Config pubspec.yaml');
await _configPubspecYaml();
print('');
print('👉 Add Dependencies');
await _addDependencies();
print('');
print('👉 Create files/folders');
await _createFilesAndFolders();
print('==================================');
print('✅ Generated Project Path: $generatedProjectPath');
print('✅ FlutterProjectGenerator FINISHED');
print('==================================');
} catch (e) {
print('==================================');
print('❌ FlutterProjectGenerator Error: $e');
print('==================================');
}
}