There are two ways to declare variables in dart language.
1st: Using ‘var‘ keyword.
2nd: Writing the datatype as a prefix.

// Using var keyword
main(){
  var a = 76;
  print(a);
  var b = "Hello World";
  print(b);
}

Output:
76
Hello World

// Using datatype as prefix
main(){
  int a = 76;
  print(a);
  String b = "Hello World";
  print(b);
}

Output:
76
Hello World