In my Dart based application I just noticed that I can omit the new
keyword and everything works perfectly fine.
Instead of final widget = new Widget();
I can also use final widget = Widget();
.
Does this have any effect in code?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…