📅  最后修改于: 2022-03-11 14:48:08.327000             🧑  作者: Mango
In dart you can not have the same method/constructor name used several times
(even with different parameters).
In your case you can either use named constructor to define 2 constructors :
class FirstClass {
FirstClass() {}
FirstClass.withA(a) {}
}