Skip to content

Instantly share code, notes, and snippets.

@AbdullohBahromjonov
Last active April 26, 2022 18:42
Show Gist options
  • Save AbdullohBahromjonov/7f0870b1bafc697abdcc8a8d46ea8834 to your computer and use it in GitHub Desktop.
Save AbdullohBahromjonov/7f0870b1bafc697abdcc8a8d46ea8834 to your computer and use it in GitHub Desktop.
Dart simple data types
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