<!-- Thank you for using DartPad! If you haven't already, please check our troubleshooting guide for info on resolving common problems people may run into when using DartPad: https://dart.dev/tools/dartpad/troubleshoot If you're still having an issue, we'd like to help. By providing as much information as possible about your browser, machine, and experience, you can help us identify problems as quickly as possible. --> ## What happened? "Expected to find ')'." <!-- Let us know what you expected to happen and what DartPad actually did. You're welcome to paste screenshots into this bug report if it will help us diagnose the problem. --> ## Steps to reproduce problem <!-- Can you reliably reproduce the issue? If so, list the steps here. --> ## Additional info VScode Copilot repeated error correction is invalid, Cursor repeated error correction is invalid. ### Machine MacBook Pro 15" Operating system: macOS Version: 15.1 ### Your code What code was in the editor, if any, when the failure occurred? You can paste it in below: ``` String userInfo(String name, {String gender = 'unknown'}, [int age = 0]) { return 'Hi, $name, gender: $gender, age: $age'; } ``` ### DartPad's output Did DartPad print anything to the console pane? If so, paste it below: ``` parameters.dart:1:58: Error: Expected ')' before this. String userInfo(String name, {String gender = 'unknown'}, [int age = 0]) { ^ parameters.dart:2:45: Error: Undefined name 'age'. return 'Hi, $name, gender: $gender, age: $age'; ``` If you were running Flutter code, you can also paste an image of the Flutter output directly into this bug report.