Data types in dart :

Type of data types:
1) Built in data type
2) Numbers
- Build in data type
1) Numbers
2) Strings
3) Booleans
4) Lists
5) Maps - Number
1) Integer
2) Double
int (Integer)
- It is store value Natural Numbers and their negative. For example (, …-3, -2, -1, 0, 1, 2, 3,…)
Example: int a=7;
Strings
- sequence of characters or bunch of characters. For example store name, store pernoal details etc.
String webname=”www.fluttertutorial.in”;
String flutterTutorial = ‘www.fluttertutorial.in’;
Boolean
- It is check conditional loginc true or false.
bool x = 2 > 4
Lists
- Arrays are not used in dart.
- collection of ordered group of objects or different elements of the same type.
void main(){ List store = new List(); // int is type of data store = [1,2,3,4,5]; print(store); }
Maps
- Storing key – value.
void main(){ Map login = new Map(); login={'Username':'Flutter Tutorial','Password':'123456'}; print(login); }
Dynamic Keyword in dart
- Statically typed – String, Boolean, Map etc.
- Dynamic data type is use run time.
void main() { dynamic test = 5; // int dynamic webname = "FlutterTutorial"; //String dynamic check = true; //Boolean }