List of All Data Types Available in Dart Flutter Explained with Example

As we all know in every programming language Data types is the main base. Data types is a type of particular defined data holders used to hold a single or multiple type of data in every programming language. In Dart there are basically 6 Types of Data type available. So in this tutorial we would see and learn complete List of All Data Types Available in Dart Flutter Explained with Examples.

List of All Data Types Available in Dart Flutter Explained with Example

List of All data types in DART:

  1. Numbers – int, double
  2. String
  3. Boolean
  4. List
  5. Map
  6. Runes

1. Numbers:

1. int : Integer is a type of non fractional number value without. Here non fractional means a value without point. Integer dose not support POINT values. It can only hold pure numeric values. See the example below.

2. double : Double are basically bigger type of FLOAT values. It can hold fractional decimal values. In dart the double support 64 bit double prescription values. double also represents floating point literals.

2. String :

String data type represents a sequence of multiple characters text also known as group of multiple characters. In Dart string is sequence of UTF-16 code units. String can be created using both single quotes and double quotes but both should be same a creation time.

3. Boolean :

Boolean data type is used to hold true and false values. Boolean data type uses the ‘bool‘ keyword on declaration time.

4. List : 

List is a group of multiple data with same data type like a collection box. We could say List is like an Array to hold same type of multiple values. The store in ordered sequence in List and Like array every single ITEM of List can be accessed via its index number.

5. Map:

Same as List data type Map data type is also a type of group of multiple values. In Map the data stored in key:value pairs format. There is no bound for key value they can be in any type. Map date can also have null type of values. Map are like objects with multiple values.

6. Runes : 

Rune data type in a integer representing of a Unicode data point. We can create different type of shapes that dose supported by Unicode using runes.

Thanks for reading my tutorial guys, Hope you have like it 🙂 .

2 Comments

  1. can you give me tutorials

Leave a Reply

Your email address will not be published. Required fields are marked *