how to set a default value in constructor in dart code example
Example: flutter constructor default value
class Customer {
String name;
int age;
String location;
Customer(this.name, [this.age, this.location = "US"]);
String toString() {
return "Customer [name=${this.name},age=${this.age},location=${this.location}]";
}
}