Set of Data Types in Dart

Data types in Dart

Each programming language contains Data types where we can specify the types of our container/variables which contain types of values.

Just like other programming languages dart also contains some data types such as:

  • Integer
  • Double
  • String
  • Booleans
  • Lists
  • Maps

First, two of the datatypes come under Numbers where we can store numeric literal.

In Integer(int), we can save non-fractional values whereas in double support fractional values.

Strings

It represents the group of characters and helps to use for saving names, address ,etc. String is the keyword to use in dart.

Boolean

This data type contains two values True and false. Mostly comes in handy while using conditions. bool is the keyword for using it in dart.

List and Map

When there Is a need for story a or data in the collection then lists and maps come in handy. In the list, we can store data in ordered way. In Maps data can be stored as key-Value pair.


For more Flutter tutorials, Tips, Tricks, Free code, Questions, and Error Solving.

Remember FlutterDecode.com

Leave a Comment