So there is 2 classes where I would like to pass class Two
as param to One
's constructor.
But dart complains that I did not initiate pro1
and prop2
class Two {
int propA = 1;
int propB = 2;
int propC = 3;
}
class One {
One(Two two){
prop1 = two.propA + two.propB;
prop2 = two.propC + 3;
}
int prop1;
int prop2;
}