Created
May 4, 2021 07:39
-
-
Save davidmigloz/a33ffd2f4afb87fcea3429e859bd9637 to your computer and use it in GitHub Desktop.
Dart vs Kotlin: collection for
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
final bodyTypes = [1, 2, 3]; | |
final children = [ | |
"Header", | |
for (final type in bodyTypes) 'Body$type', | |
"Footer" | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment