Classes and Object in Dart

class Student {
  String id;
  String name;
  int age;
  double score;
}

void main() {
  var student = new Student();
  student.id = "st01";
  student.name = "name 1";
  student.age = 20;
  student.score = 6.7;
  print("id: ${student.id}");
  print("name: ${student.name}");
  print("age: ${student.age}");
  print("score: ${student.score}");
}
id: st01
name: name 1
age: 20     
score: 6.7