Sobes.tech
Junior — Middle

Can you name the main primitive data types used in Dart?

sobes.tech AI

Answer from AI

In Dart, the main primitive data types include:

  • int — integers
  • double — floating-point numbers
  • bool — boolean values (true/false)
  • String — text strings
  • null — a special value indicating the absence of a value

Example usage:

int age = 30;
double price = 19.99;
bool isActive = true;
String name = "Dart";