generate method
Executes the plugin's code-generation and configuration logic.
Implementation
@override
Future<void> generate(ProjectContext context) async {
final pubspecPath = '${context.projectPath}/pubspec.yaml';
// 1. Add MobX dependencies
Services.yamlService.addDependency(pubspecPath, 'mobx', '^2.3.3');
Services.yamlService.addDependency(pubspecPath, 'flutter_mobx', '^2.2.0');
// Add MobX generators for build_runner
Services.yamlService.addDependency(pubspecPath, 'mobx_codegen', '^2.6.2', isDev: true);
Services.yamlService.addDependency(pubspecPath, 'build_runner', '^2.4.8', isDev: true);
}