Class

Declaring Class in dart

void main() {
 
}

class Employee{

  int id ;
  
  String name;
  
  String position;
  
  String companyname;
  
  
}

You can visualise the above class like below -

Last updated

Was this helpful?