Difference between const constructor and cost?

前端 未结 0 1639
执念已碎
执念已碎 2021-01-14 02:23

I have the following code snippet:

class ImmutablePoint {

  final double x, y;

  const ImmutablePoint(this.x, this.y);
}

void main() {
  
  var i = const I         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题