Last active
April 26, 2022 18:42
-
-
Save AbdullohBahromjonov/7f0870b1bafc697abdcc8a8d46ea8834 to your computer and use it in GitHub Desktop.
Dart simple data types
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
int number = 2; | |
num number2 = 2.0; | |
double number3 = 3; | |
String str = 'Abdulloh'; | |
final list = [1, 2, 3]; | |
final map = {1: 'one', 2: 'two', 3: 'three'}; | |
final mapValue = map[1]; | |
Set<int> set1 = {1, 2 ,3}; | |
Runes runes = Runes('\u{1f605}'); | |
void main() { | |
print(''' | |
Integer: $number | |
Number type: $number2 | |
Double: $number3 | |
'''); | |
print(''' | |
String type: $str | |
'''); | |
print(String.fromCharCodes(runes)); | |
set1.add(2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment