dart method default value 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}]";
}
}