Last active
January 29, 2020 09:49
-
-
Save IhwanID/0faf7eb94b01cb94c5b30e44afbfeabc to your computer and use it in GitHub Desktop.
list & maps
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() { | |
| List<int> primeNumber = [2,3,5,7]; | |
| primeNumber.addAll([11, 13, 17, 19]); | |
| primeNumber.add(23); | |
| print(primeNumber); | |
| //map | |
| var person = <String, dynamic>{ | |
| 'name' : 'Dewi', | |
| 'age' : 17, | |
| 'height' : 1.72 | |
| }; | |
| person['weight'] = 55; | |
| print(person['weight']); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment