We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible in one of the next versions of dart to implement a shorthand syntax for => functions?
The abbreviation is that for functions => with one parameter, it is not necessary to use parentheses around the parameter. Much like in javascript.
void main() { var list1 = [1, 2, 3]; list1.map((i) => i + 1); // current version list1.map(i => i + 1); // a new version }
The text was updated successfully, but these errors were encountered:
You should put language stuff in https://github.com/dart-lang/language
Sorry, something went wrong.
Something like that exists: dart-lang/language#320
I'll defer to the existing language issue.
No branches or pull requests
Is it possible in one of the next versions of dart to implement a shorthand syntax for => functions?
The abbreviation is that for functions => with one parameter, it is not necessary to use parentheses around the parameter.
Much like in javascript.
The text was updated successfully, but these errors were encountered: