i have array that holds arguments which i want to pass to a constructor of a class
void main() {
var arr = ["abc", "bca"];
A(...arr); //something like that
}
class A {
String a;
String b;
A(this.a,this.b);
}
is there any way to do so. Please help me if you have any solution.