promptDevDependency static method
Implementation
static Future<bool> promptDevDependency() async {
stdout.write('? Add as dev dependency? (y/N): ');
final input = stdin.readLineSync()?.trim().toLowerCase() ?? '';
return input == 'y' || input == 'yes';
}