You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered: