Class
Class is a blueprint or template for creating object/instance
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?