'Can we include both named and unnamed parameters in class constructors typescript?
This is how we do it in dart, I need a similar example in typescript
class Person{
final String name;
final double age, height, weight;
//constructor
Person(this.name,{this.age, this.height, this.weight})
}
//initialization
Person person = Person('Bruce Wayne', height: 172, weight: 82, age: 25);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
