detectStateManagement function
Implementation
String detectStateManagement(String projectPath) {
final pubspec =
File(p.join(projectPath, 'pubspec.yaml')).readAsStringSync();
if (pubspec.contains('flutter_riverpod')) {
return 'riverpod';
}
if (pubspec.contains('flutter_bloc')) {
return 'bloc';
}
return 'bloc';
}