Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why I see this error regarding S9 L8 (Function Challenge)? #70

Open
JaSho145 opened this issue Sep 15, 2022 · 2 comments
Open

why I see this error regarding S9 L8 (Function Challenge)? #70

JaSho145 opened this issue Sep 15, 2022 · 2 comments

Comments

@JaSho145
Copy link

image

@prateek-aher
Copy link

That's what you got to figure out. That's the challenge. Close this issue please.

@JohnMeyerhoff
Copy link

I assume you missed the curly braces around your parameters which should not be there. it should be

add(int n1, int n2)

instead of

add({int n1, int n2})

Your optional Parameters are required in your method, this article might be helpful:
https://zaiste.net/posts/dart-optional-function-parameters/
The message you are getting does not get straight to the point because it does not see the issue in L16 of using them but rather in L15 because the optional parameters do not have a provided default value.
Please also refrain from sending large screenshots, as it will be sent to all 500+ people watching this repository by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants