Is it possible to assign a constant value to an optional parameter of datatype List while defining a constructor. for example,
`class sample{
final int x;
final List<String> y;
sample({this.x = 0; this.y = ["y","y","y","y"]});
}`
the above code throws an error focused at y assignment saying Default values of an optional parameter must be constant
what is the reason for this error? how else can I assign a default value to the List?