Last active
December 22, 2018 15:42
-
-
Save madhankumardroid/1fdcfcc6597a79211fb52289269720ec to your computer and use it in GitHub Desktop.
This file contains 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() { | |
var x= 10.983747; | |
print(x.runtimeType); | |
String s = x.toString(); | |
print(s); | |
String s1 = x.toStringAsFixed(1); | |
print(s1); | |
String name ="Madhan"; | |
print("My name is ${name}"); | |
var list1 =[1,2,3,4,5]; | |
var list2 = ["Hi", "Hello", "Welcome"]; | |
var list3 = [1,2.3,4.5,"mingles"]; | |
print(list1); | |
print(list2); | |
print(list3); | |
var maps = {"name" : "Madhan", "age" : "25", "Gender":"Male"}; | |
print(maps); | |
print(maps.keys); | |
print(maps.values); | |
print(maps['name']); | |
print(maps['age']); | |
print(maps['Gender']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment