ways of defining constructor in dart code example
Example: constructor flutter
class Student{
Student(int enNum){
print(enNum);
}
}
main(){
var myStudent = new Student(15);
}
class Student{
Student(int enNum){
print(enNum);
}
}
main(){
var myStudent = new Student(15);
}