Data Types in Dart

Learn about the different data types available in the Dart programming language.

What are Data Types?

⭐ Important

Data types tell Dart what kind of value a variable is expected to store.

For example:

String name = 'Dart';
int age = 5;
double price = 99.99;
bool isActive = true;

Common Dart Data Types

Type Example Description
String "Hello" Text
int 42 Whole numbers
double 3.14 Decimal numbers
bool true true or false