void main(String[] args) dart code example
Example 1: Flutter Constructor
Customer(String name, int age, String location) {
this.name = name;
this.age = age;
this.location = location;
}
Customer(this.name, this.age) {
this.name = name;
this.age = age;
}
Example 2: dart function syntax
sum(x, y) {
return x + y;
}
// This is where the app starts executing.
void main() {
print(sum(3,5)); // => 8
}